T
tshad
Are Validators able to use CSSClass?
I have the following:
<asp:RegularExpressionValidator
ControlToValidate="txtEmail" CssClass="errorMessage"
Text = "Invalid Email Address!"
ValidationExpression="\S+@\S+\.\S{2,3}"
runat="server" />
<asp:RequiredFieldValidator
ControlToValidate="txtEmail"
CssClass="errorMessage"
Text="You must enter an email"
runat="server" />
The class is defined as:
..errorMessage{
font-size:14;
color:#00FFFF;
}
I still get the text at the old size and large.
Thanks,
Tom
I have the following:
<asp:RegularExpressionValidator
ControlToValidate="txtEmail" CssClass="errorMessage"
Text = "Invalid Email Address!"
ValidationExpression="\S+@\S+\.\S{2,3}"
runat="server" />
<asp:RequiredFieldValidator
ControlToValidate="txtEmail"
CssClass="errorMessage"
Text="You must enter an email"
runat="server" />
The class is defined as:
..errorMessage{
font-size:14;
color:#00FFFF;
}
I still get the text at the old size and large.
Thanks,
Tom