Home / Software / Tips and Tricks / How can I apply CSS class on an ASP.NET Client Validator

How can I apply CSS class on an ASP.NET Client Validator

Updated:  03/17/2009 09:03 AM
Author:  Shiju Mathews

Status:    Resolved.


If we want to apply a custom css class to a client validator first we need to set the forecolor of that validator to Color.Empty. For this add the following code to the page Page_Init or Page_Load of that page.

Where 'valrReOpen' is the name of the control .



Then add the css class to the validator.