By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,022 Members | 1,398 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,022 IT Pros & Developers. It's quick & easy.

Change the Background Color of a readonly Textbox ?

P: 3
Hi All,

Is it possible to change the BackColor of a

readonly Textbox ?


Thanks in advance
Aug 22 '07 #1
Share this Question
Share on Google+
3 Replies


nateraaaa
Expert 100+
P: 663
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
Expert 5K+
P: 7,872
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
Expert 100+
P: 663
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

Post your reply

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