Alex Rivera | Logout

Disabled Checked checkbox shows as unchecked - ASP.NET

Asked 2009-03-09T22:39:54.997
9

I have a input checkbox that is checked and disabled when some JS runs on page load.

<input name="selectUnionDues" id="selectUnionDues"  type="checkbox" checked="checked" runat="server" />

When I get the value of the checkbox by using (on the server side)

this.selectUnionDues.checked //returns false

I always get a false

EDIT: I am concerned about using heavy asp.net controls since the page size in this application needs to be low. Is there a way out using HTMl controls?

Edit
Report

1 Answer

11

Disabled form controls are not "successful controls", that means they values aren't "submitted" at all with your form.

answered 2009-03-09T22:47:42.717

Your Answer