tag:blogger.com,1999:blog-9049032025342264339.post6818448934557188518..comments2024-03-18T21:16:25.335+03:00Comments on sadomovalex's blog: ASP.Net Checkbox.Checked is set to default when use disabled attribute or difference between Enabled property and disabled attributeAlexey Sadomovhttp://www.blogger.com/profile/18112105989691733410noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-9049032025342264339.post-81331198739534595152014-01-14T17:20:33.089+04:002014-01-14T17:20:33.089+04:00Shane,
try to store the correct value in hidden fi...Shane,<br />try to store the correct value in hidden field with different id/name and use it as primary source of the data instead of checkbox. On server side use this hidden field for initializing checkbox value.Alexey Sadomovhttps://www.blogger.com/profile/18112105989691733410noreply@blogger.comtag:blogger.com,1999:blog-9049032025342264339.post-27080705377395064822014-01-14T16:02:10.432+04:002014-01-14T16:02:10.432+04:00found a JQuery example http://stackoverflow.com/qu...found a JQuery example http://stackoverflow.com/questions/5680189/removing-disabled-attribute-from-outer-span-on-an-checkbox-list-control but still hoping to find a serverside solution.Anonymoushttps://www.blogger.com/profile/11534025575494684278noreply@blogger.comtag:blogger.com,1999:blog-9049032025342264339.post-17484432126362437602014-01-14T15:57:13.595+04:002014-01-14T15:57:13.595+04:00I too have recently come across this as a result o...I too have recently come across this as a result of using the AjaxControlToolkit Togglebutton extender with adatabound checkbox in a gridview. IT is applying the disabled="disabled" attribute to a span containing the asp:checkbox control. What would be the best way to prevent or remove the attribute so the checkbox maintains its value?Anonymoushttps://www.blogger.com/profile/11534025575494684278noreply@blogger.com