473,395 Members | 1,616 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,395 software developers and data experts.

Change the Background Color of a readonly Textbox ?

Hi All,

Is it possible to change the BackColor of a

readonly Textbox ?


Thanks in advance
Aug 22 '07 #1
3 3273
nateraaaa
663 Expert 512MB
Hi All,

Is it possible to change the BackColor of a

readonly Textbox ?


Thanks in advance
yes.

Expand|Select|Wrap|Line Numbers
  1. <asp:TextBox id="TextBox1" Width="83px" runat="server" ReadOnly="True" BackColor=#ffff66></asp:TextBox>
Nathan
Aug 22 '07 #2
Plater
7,872 Expert 4TB
Ya missed a few quotes nate:

Expand|Select|Wrap|Line Numbers
  1. <asp:TextBox id="TextBox1" Width="83px" runat="server" ReadOnly="True" BackColor="#ffff66"></asp:TextBox>
  2.  
Aug 22 '07 #3
nateraaaa
663 Expert 512MB
Ya missed a few quotes nate:

Expand|Select|Wrap|Line Numbers
  1. <asp:TextBox id="TextBox1" Width="83px" runat="server" ReadOnly="True" BackColor="#ffff66"></asp:TextBox>
  2.  
The html should work with or without the quotes but it is a good practice to use them.

Nathan
Aug 22 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Tor Inge Rislaa | last post by:
How to change row height in a DataGrid I have DataGrid that is filled with data from a table in a DataSet. The content of the cells is text of more than one line (as a note field). What I...
2
by: Gungmas | last post by:
I have used a generic funtion for setting background color in my VB6 code like this: For Each ctl In frm.Controls sCtlType = TypeName(ctl) If sCtlType = "TextBox" Or sCtlType = "ComboBox" Then...
4
by: Stephen | last post by:
greeting folks I would like to change the foreground color for a disabled textbox from the dimmed gray to something else that is easlier readable. I can change the background using the...
0
by: Jeff User | last post by:
I have my datagrid running pretty much with a EditCommandColumn and some TemplateColumn columns. There are two types of appearance changes I would like to make programatically from my C# code...
1
by: laredotornado | last post by:
Hello, I was wondering if there is any cross-browser CSS way to specify that I want the background color of a readonly input text field to be the same as its parent row. Right now, I have ...
0
by: Groove | last post by:
I've noticed something that's come up twice today alone. In ASP.NET 1, I could reference and use a control's property if the control was set to readonly or if it was set to visible = false. Such...
7
by: garyusenet | last post by:
I'm using krypton toolkit which has allowed me to make a cool looking form. However, when I set my textbox to disabled it is 'greyed' out. The grey colour isn't in keeping with the office 2007...
4
by: Dean Slindee | last post by:
Anyone got a quick and easy way to change the background color on a textbox after the user has change the text value. Already have lots of forms written, so an approach that does not depend on...
10
by: engteng | last post by:
When textbox properties enable = False the font in the textbox become gray color. How do I change the gray color to black color ? Regards, Tee
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.