Geeks With Blogs
Sreenivas Mogullapalli Microsoft Technologies Geek October 2008 Entries
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 On Thursday, October 30, 2008 5:03 PM

Copyright © Sreenivas Mogullapalli | Powered by: GeeksWithBlogs.net