After successfully customizing the style of my ValidatorCalloutExtender on a RequiredFieldValidator to a more 'Modern UI', I encountered an issue when deploying it to the production server. Despite testing it on multiple browsers with satisfactory results, the CSS did not render correctly in the live environment.
View the Example Image here
Below is the CSS code I used:
.validatorCalloutHighlight
{
border:solid;
border-color: #FFCC00;
}
.ajax__validatorcallout_popup_table
{
min-width: 350px;
min-height: 40px;
background: #FFCC00;
-webkit-border-radius: 0px;
-moz-border-radius: 0px;
border-radius: 0px;
margin-left:250px;
margin-top:-20px;
color:black;
}
...
The corresponding ASP code snippet:
<asp:TextBox ID="txtUsername" runat="server" Width="300px"></asp:TextBox>
<asp:RequiredFieldValidator CssClass="validator_callout" ID="reqvalUsername" runat="server" ControlToValidate="txtUsername" Display="None" ErrorMessage="Enter a new login name" ValidationGroup="Submit">*</asp:RequiredFieldValidator>
<cc1:ValidatorCalloutExtender ID="reqvalUsername_ValidatorCalloutExtender" runat="server" CloseImageUrl="~/Images/Buttons/cancel_Validator.png" HighlightCssClass="validatorCalloutHighlight" TargetControlID="reqvalUsername" PopupPosition="TopRight" WarningIconImageUrl="~/Images/Status/clear.png">
</cc1:ValidatorCalloutExtender>
I tried various troubleshooting methods including modifying the web.config file but to no avail. If anyone has insights or solutions to this problem, please share as I am determined to implement this new style correctly.