O
Oriane
Hi there,
I would like to handle a "rollover" <asp:Button> in the code behind with C#
with this kind of code:
Button btn = Page.FindControl("Button" + numWidget) as
Button;
btn.Attributes["onmouseover"] = "document.all." +
btn.ClientID + ".src = '/Images/blue.gif'";
This code works for ImageButton...but not for Button (it does nothing).
My goal is to change the background image.
Best regards
I would like to handle a "rollover" <asp:Button> in the code behind with C#
with this kind of code:
Button btn = Page.FindControl("Button" + numWidget) as
Button;
btn.Attributes["onmouseover"] = "document.all." +
btn.ClientID + ".src = '/Images/blue.gif'";
This code works for ImageButton...but not for Button (it does nothing).
My goal is to change the background image.
Best regards