I have a ASP.Net webpage with following edit rules
- Normal user can edit only blank fields
- Admin user can edit all fields ( No Issue!!)
To accomplish this, I tried to “Disable” all fields which have a value using javascipt,
but on postback all the disabled fiels lost its state . So I change to Readonly=true . Now all textboxes are working as expected. But the Dropdowns can still editable even though the readonly is true .
How can i accomplish this without losing the control`s value on postback ?
Thanks in advance .
Use the server side Enabled property.