2.0: unexpected color of TextBox

  • Thread starter Thread starter R.A.M.
  • Start date Start date
R

R.A.M.

Hello,
I am learning .NET and I have such problem:
I have a page with a number of TextBox controls - all of them are
white. Unexpectedly of of them is yellow.
Here definition of the control:

E-mail: <asp:TextBox ID="Email" runat="server" ValidationGroup="Email"
/>
<asp:RegularExpressionValidator ID="ValidationOfEmail" runat="server"
ValidationGroup="Email" ControlToValidate="Email"
ValidationExpression="([\w\-]+\.)*[\w\- ]+@([\w\- ]+\.)+([\w\-]{2,3})"
/>

I don't use CSS. For instance: Name: <asp:TextBox ID="Name"
runat="server" ValidationGroup="Name" /> is white.

Please help.
Thank you!
/RAM/
 
R.A.M. said:
Hello,
I am learning .NET and I have such problem:
I have a page with a number of TextBox controls - all of them are
white. Unexpectedly of of them is yellow.
Here definition of the control:

E-mail: <asp:TextBox ID="Email" runat="server" ValidationGroup="Email"
/>
<asp:RegularExpressionValidator ID="ValidationOfEmail" runat="server"
ValidationGroup="Email" ControlToValidate="Email"
ValidationExpression="([\w\-]+\.)*[\w\- ]+@([\w\- ]+\.)+([\w\-]{2,3})"
/>

I don't use CSS. For instance: Name: <asp:TextBox ID="Name"
runat="server" ValidationGroup="Name" /> is white.

Please help.
Thank you!
/RAM/

It is because of Google toolbar present in your IE window. If you look
at the top of your IE window (normally, below to address bar) you can
see toolbar plugin installed by Google (or may be Yahoo).

This toolbars highlight the textboxes near to known labels to make the
data entry easier. This is called "AutoFill"

You can disable this feature by disabling it thru the Option window.

Anyways, this is nothing to do with your code.

-
Vadivel Kumar
http://vadivelk.net
 
Back
Top