How do you change Validation marker style

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
User avatar
William_firefold
Commander (CMDR)
Commander (CMDR)
Posts: 186
Joined: Fri Aug 01, 2008 8:38 am

How do you change Validation marker style

Post by William_firefold » Wed Sep 17, 2008 6:38 am

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?

Image

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: How do you change Validation marker style

Post by mazhar » Thu Sep 18, 2008 2:41 am

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>

Post Reply