I'm facing a situation with my ASP.Net webpage where I have specific rules for editing content:
- Normal users can only edit blank fields
- Admin users have the ability to edit all fields without any restrictions
To implement this, initially I attempted to use JavaScript to disable all fields that had values, but unfortunately, upon postback, all disabled fields lost their state. Therefore, I decided to set Readonly=true instead. Now, all textboxes are working as intended, however, dropdowns can still be edited even when readonly is true.
Is there a way to achieve this functionality without losing the control's value on postback?
Thank you in advance.