Page 1 of 1
How do you change Validation marker style
Posted: Wed Sep 17, 2008 6:38 am
by William_firefold
I have been unable to locate a global class that I can use to change the style of the stars that show up beside required fields.
Is there any way I can change the style of all stars at once, or do I have to do it manually?

Re: How do you change Validation marker style
Posted: Thu Sep 18, 2008 2:41 am
by mazhar
Define a style in CSS class like
Code: Select all
.validator
{
color:#00FF00!important;
}
Now set CssClass property of each validatoin control to validator for example as below
Code: Select all
<asp:RequiredFieldValidator ID="BillToFirstNameRequired" runat="server" Text="*"
ErrorMessage="First name is required." Display="Static" ControlToValidate="BillToFirstName"
EnableViewState="False" SetFocusOnError="false" ValidationGroup="OPC" CssClass="validator"></asp:RequiredFieldValidator>