473,396 Members | 1,968 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Specifying the background colour of an <asp:TextBox> also changes its border style

Hi,

Have been modifying a piece of JavaScript I found on the net which
completely prevents the Google AutoFill Toolbar from doing its stuff... Got
that working now but, while I was debugging it, I noticed that every field
that the Google Toolbar turned yellow also had its border style changed...

Seems that this is a standard "feature"... If you specify an <asp:TextBox>'s
BackColor property, that also changes its border style - has anyone else
seen this? It's the same if you make the change with DHTML after the page
has loaded.

E.g., when I display the following markup:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >

<head runat="server">

<title>Untitled Page</title>

</head>

<body>

<form id="form1" runat="server">

<asp:TextBox ID="txtWhite" runat="server" />

<br />

<asp:TextBox ID="txtGreen" runat="server" BackColor="LightGreen" />

</form>

</body>

</html>
the first textbox displays "normally" but the second has a different border
style. Can anyone else confirm this behaviour and, if so, is there a way to
prevent it...?

Any assistance gratefully received.

Mark
Jan 13 '07 #1
1 1341
"Mark Rae" <ma**@markNOSPAMrae.comwrote in message
news:uw****************@TK2MSFTNGP03.phx.gbl...

Nobody got any ideas on this one...?
Jan 17 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Kerri | last post by:
Hi, I have an asp textbox that allows users to enter their password. I have another page that allows a user to edit their user account. On this page I set the text to be the password in...
3
by: Jaime Stuardo | last post by:
Hi all... Both controls are server side. The former has more properties. Both may have associated events that are ran at server. Which one are recommended to use? is performance an issue? in...
11
by: Joe | last post by:
Hello All, I have an ASP.NET page with one Textbox (SearchTextBox) and one ImageButton (SearchButton) server controls. The user can type search text in SearchTextBox and click SearchButton and...
0
by: CharlesA | last post by:
Hi folks, I'm using ASP.net 1.1 with C# I've got this kind of thing going <div class="row"> <label class="col1">Rm Name</label> <asp:textbox id="txtRM" runat="server" cssclass="col2"...
6
by: John Smith | last post by:
I have my <asp:TextBox> inside one of DataGrid's columns. I haven't set AutoPostBack=True. When I hit the ENTER button, my page "refreshes" (I belive that PostBack was performed - however not...
0
by: SureshBeniwal | last post by:
Dear All, What is the scenario in which onBlur for an ASP.NET web control <asp:textbox> would not get called, while onChange would? I ran into such a situation few hours back. can somebody throw...
0
by: sjickells | last post by:
Hi I am having a problem using asp:TextBox's in a transparent table. I have a background image on the page and a table in the middle of the page. I have set the background colour of the table...
1
by: raghulvarma | last post by:
In <asp:textbox> we do not have the method such as onmouseover as we have it in input type = "text" instead of onmouseover which method would be a perfect match for it? My situation is for a calender...
1
by: =?Utf-8?B?R3JlZw==?= | last post by:
I've added some <ASP:Textboxcontrols to a data-entry form. I've set the backcolor to light green and they appear properly on the page when I'm developing. But, when I load the page, only the first...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.