Author: sachin_mt | Posted on: 7/9/2010 12:16:44 PM | Views : 517

In my web form I have a asp:Panel control which has many dropdowns and textboxes and text areas.
I have to display the data in these controls and disable the panel so that users can only view but not edit the data.
I do this using the enabled property set to false.
The problem is when the panel is disabled the background color is changed to gray and fore color of the text changes to very lighter color to show that it is disabled.But this affects users who wants to view the data since it is very lighter in color
Is there any way by which we can change the backcolor and fore color of all the controls with just changing the stylesheet for the panel.
Actually the panel is rendered as div tag on the browser.
So is there any stylesheet value like .disabled which we can add in which we can customize the back and fore color for disabled items.
If so please provide sample code.
If any solution please let me know,if the ...

Go to the complete details ...