I recently built a JavaScript function in HeadLight that filled a textbox from JavaScript and then disabled the textbox to prevent the user to alter its contents. When the form was submitted, it didn’t submit the contents of the disabled textbox. It puzzled me, but then I found that ASP.NET 2.0 doesn’t submit client-side disabled controls by default. However, there is an easy way to force it to do so.

All you have to do is to put this line in the Page_Load:

Page.Form.SubmitDisabledControls =true;

The reason why I’ve never seen this property before, is that I have never had the need for it. I guess I’m just slow, but then again, slow is the new fast.