472,119 Members | 1,507 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,119 software developers and data experts.

TextBoxes with Yellow Background

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
Nov 18 '05 #1
3 3552
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" <no*****@online.nospam> wrote in message
news:u8**************@TK2MSFTNGP11.phx.gbl...
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

Nov 18 '05 #2
you most likely have a google toobar installed.... it like to color in the
auto fill boxes......

"A.M" <no*****@online.nospam> wrote in message
news:u8**************@TK2MSFTNGP11.phx.gbl...
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

Nov 18 '05 #3
A.M
Ah, Thank you very much guys!!
That problem Killed me and I couldn't figure that out!!

Thanks Again!

"A.M" <no*****@online.nospam> wrote in message
news:u8**************@TK2MSFTNGP11.phx.gbl...
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

Nov 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by michaaal | last post: by
2 posts views Thread by Dave Vinell | last post: by
4 posts views Thread by Child | last post: by
3 posts views Thread by sakhan | last post: by
4 posts views Thread by cover | last post: by
7 posts views Thread by Tina | last post: by
3 posts views Thread by Greg Smith | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.