To do it codewise you should do like you do. Example of disabling a textbox.
TextBox t = (TextBox)ctrl;
t.Enabled = false;
Have you looked at how the rendred page looks like in the pagesource AFTER BEING LOADED are there any attributes that say disabled?
The following elements support the disabled attribute:
- button
- input
- optgroup
- option
- select
- textarea
To disable a form control, add disabled="disabled" to the element. For example:
<input type="text" name="foo" value="bar" disabled="disabled" />
To re-enable the element, remove the disabled="disabled" attribute:
<input type="text" name="foo" value="bar" />
The following elements support the read-only attribute:
- input
- textarea
To make a form control read-only, add readonly="readonly" to the element. For example:
<input type="text" name="foo" value="bar" readonly="readonly" />
To allow the element to be written to, remove the readonly="readonly" attribute:
<input type="text" name="foo" value="bar" />