TextBoxes with Yellow Background

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
 
M

Marina

I bet you have the google toolbar installed - this has an auto fill feature
which can auto fill data for you. By default, fields that the toolbar thinks
it can auto fill for you (which it determines I think by the name of the
input control) are made yellow.

I think if you go under options, you can turn off highlighting of fields
that autofill can use.

A.M said:
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 said:
Thanks,
Alan
 
R

Rob T

you most likely have a google toobar installed.... it like to color in the
auto fill boxes......

A.M said:
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 said:
Thanks,
Alan
 
A

A.M

Ah, Thank you very much guys!!
That problem Killed me and I couldn't figure that out!!

Thanks Again!





A.M said:
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 said:
Thanks,
Alan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top