Sreenivas Mogullapalli

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

My Links

News



Tag Cloud

Archives

Post Categories

.NET Framework

SQL Server

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=""
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Posted On Thursday, October 30, 2008 5:03 PM | Feedback (3) | Filed Under [ Microsoft ASP.NET ]

Powered by: