A
A.M
Hi,
Even I specifically mentioned "white" as background color of all
ASP:TextBoxes of my form, Some of them come up with yellow background.
I guess it should be kind of ASP.NET behaviour, but I don't know what
exactly it means.
What is the meaning of that yellow BG color of ASP:TextBoxes ? How can I
have control over it?
Here is a sample of textbox that comes up with yellow BG color:
<asp:TextBox id=txtPhone runat="server" MaxLength="10"
BackColor="White"></asp:TextBox>
<asp:RegularExpressionValidator id=RegularExpressionValidator1
runat="server" ErrorMessage="Invalid Phone Number!"
ControlToValidate="txtPhone" EnableClientScript="False"
ValidationExpression="^\d{10,10}$">*</asp:RegularExpressionValidator>
And here is a sample of another text box which comes up with white BG:
<asp:TextBox id=txtLastName runat="server" MaxLength="20"
BackColor="White"></asp:TextBox>
<asp:RegularExpressionValidator id=vName runat="server"
ErrorMessage="Invalid Last Name!" ControlToValidate="txtLastName"
EnableClientScript="False"
ValidationExpression="^[a-zA-Z ]{0,20}$">*</asp:RegularExpressionValidator>
Thanks,
Alan
Even I specifically mentioned "white" as background color of all
ASP:TextBoxes of my form, Some of them come up with yellow background.
I guess it should be kind of ASP.NET behaviour, but I don't know what
exactly it means.
What is the meaning of that yellow BG color of ASP:TextBoxes ? How can I
have control over it?
Here is a sample of textbox that comes up with yellow BG color:
<asp:TextBox id=txtPhone runat="server" MaxLength="10"
BackColor="White"></asp:TextBox>
<asp:RegularExpressionValidator id=RegularExpressionValidator1
runat="server" ErrorMessage="Invalid Phone Number!"
ControlToValidate="txtPhone" EnableClientScript="False"
ValidationExpression="^\d{10,10}$">*</asp:RegularExpressionValidator>
And here is a sample of another text box which comes up with white BG:
<asp:TextBox id=txtLastName runat="server" MaxLength="20"
BackColor="White"></asp:TextBox>
<asp:RegularExpressionValidator id=vName runat="server"
ErrorMessage="Invalid Last Name!" ControlToValidate="txtLastName"
EnableClientScript="False"
ValidationExpression="^[a-zA-Z ]{0,20}$">*</asp:RegularExpressionValidator>
Thanks,
Alan