Sreenivas Mogullapalli

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

My Links

News



Tag Cloud

Archives

Post Categories

.NET Framework

SQL Server

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=""

 

  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Print | posted on Thursday, October 30, 2008 5:03 PM | Filed Under [ Microsoft ASP.NET ]

Feedback

Gravatar

# re: Tip: Changing Validator text color using class name

recive skins for visual studio 2008
11/18/2008 2:53 AM | moh
Gravatar

# re: Tip: Changing Validator text color using class name

The trick here is we also need to set the ForeColor to empty to get the color of text from CSS Class
11/5/2009 8:20 PM | Seiko Kinetic
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 
 

Powered by: