I need to change the background colour of a button using C# code (Visual Studio 2008).
background
I saw some people recommending the inclusion of a directive: us
us
On PageLoad try this,
Button1.Style.Add("background-color", "green");
Use a method to write a condition when you want to change the color of the button. if condition is true use above code to change the color of the button as you prefer.