January 21, 2011

How to change text box background color in ASP.Net

if(txtCColor.Text == "Change")
txtCColor.Style.Add(HtmlTextWriterStyle.BackgroundColor,"Aqua");
else
txtCColor.Style.Add(HtmlTextWriterStyle.BackgroundColor, "White");

No comments:

Post a Comment