private void Page_Load(object sender, System.EventArgs e) { Button1.Attributes.Add("onMouseOver", "this.style.backgroundColor='red';"); }Unlike VB, both C# and JScript are case sensitive. I think it's 'backgroundcolor' in your code. Change it to backgroundColor and test.
>Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load > 'Put user code to initialize the page here > Button2.Attributes.Add("OnMouseOver", "changecolor(this,'red');") >End Sub >>
><input type="submit" name="Button2" value="Button" id="Button2" OnMouseOver="changecolor(this,'red');" style="Z-INDEX: 101; LEFT: 176px; POSITION: absolute; TOP: 136px" /> >>
><script language="javascript"> > function changecolor(oBtn, sColor) > { > oBtn.style.backgroundcolor = sColor; > } ></script> >>