I am trying to fix the color of the RequiredFieldValidator on a form that was created for my company.
Here is the code for the validator.
Here is the CSS Class
Any ideas on where i should look to see what is seting this style?
style="color:Red;display:none;"
Here is the code for the validator.
Code:
<asp:TextBox ID="Name" runat="server" TabIndex="3"></asp:TextBox>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
ControlToValidate="Name" CssClass="validation-advice"
ErrorMessage="<br /> is required" SetFocusOnError="True" Display="Dynamic"></asp:RequiredFieldValidator>
Here is the CSS Class
Code:
.validation-advice {
/*color: #990000;*/
color: #B31212;
font-size: smaller;
}
[/]
However, changing the color in the sytle sheet does not change when this is run.
When I view the source of the page I see that the color is set inside of a style property.
[code]
<span id="RequiredFieldValidator1" class="validation-advice" style="color:Red;display:none;"><br /> is required</span>
Any ideas on where i should look to see what is seting this style?
style="color:Red;display:none;"