Sreenivas Mogullapalli

Microsoft Technologies Geek
posts - 44, comments - 40, trackbacks - 6

My Links

News



Archives

Post Categories

.NET Framework

SQL Server

Thursday, October 30, 2008

Tip: Changing Validator text color using class name

In my ASP.NET application validators are used for validating the data entry part and as per the requirement we need to show a different color for error messages. We have created a CSS class for all the error message and applied to validators but noticed that the error messages are always displayed in RED color. The trick here is we also need to set the ForeColor to empty to get the color of text from CSS Class. Sample is provided below.

CssName="Someclass" ForeColor=""

 

posted @ Thursday, October 30, 2008 5:03 PM | Feedback (2) | Filed Under [ Microsoft ASP.NET ]

Powered by: