i want to change back color of user controls named UserTextBox1
Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Suthish NairPosted Oct 7, 2010, 4:34 PM
((TextBox)UserControl1.FindControl("UserTextBox1")).BackColor = "Red";
or,
((TextBox)UserControl1.FindControl("UserTextBox1")).BackColor = System.Drawing.Color.Name.Red;
If using MasterPage then,
((TextBox) ((UserControl) this.Master.FindControl("UserControl1")).FindControl("UserTextBox1")).BackColor = "Red";
Suthish NairPosted Oct 8, 2010, 10:57 AM
Shailendra VermaPosted Oct 8, 2010, 9:35 AM