I want to set some fields as readonly. I could successfully set this for textbox controls. But couldn't do for textArea and DropDownBoxes. I did not find any attribute for this fields.
Please suggest me how to set them.
Thanks,
Bhushan.
This might be a basic question but plzzz help me !
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

anjum8 reputationPosted Feb 15, 2006, 4:33 AM EST
Try enabled property. That should work in IE, but may not in other browsers.
anjum8 reputationPosted Feb 15, 2006, 4:33 AM EST
Try enabled property. That should work in IE, but may not in other browsers.And try handling keypress and mousepress events.
Greg Dodd3 reputationPosted Feb 15, 2006, 8:03 AM EST
nagabhushan hegde26 reputationPosted Feb 15, 2006, 10:44 PM EST
I do not want to disable the controls since that would make the inner text faded.
When I say readonly for dropdown box, it means that selection shouldn't be allowed.
In case of textarea also, I want to make it read only ,dont want to disable.
Thanks.