My checkboxlist doesn't work when javascript is disabled.
Is there any workaround to make checkoboxlist to autopostback when javascript is disabled?
My checkboxlist doesn't work when javascript is disabled.
Is there any workaround to make checkoboxlist to autopostback when javascript is disabled?
Autopostback only works if your javascript is enabled.
A workaround is to have a input button and make it appear within noscript tags
<noscript>
<asp:Button ID="MyButton" runat="server" OnClick="MyButton_OnClick" Text="Submit" />
</noscript>
Add your functionality to 'OnClick', button will only appear if the javascript is disabled
afaik you need javascript for autopostback.
but you could do a workaround, instead of using checkboxes you could use many forms. but just do this if you really really need this "autopostback" feature.
with css you could change the icon for the button, you only have to check in the postback which state the "checkbox" has and set the correct css class.
cheers