Hi there,
I would like to handle a "rollover" <asp:Buttonin the code behind with C#
with this kind of code:
Button btn = Page.FindContro l("Button" + numWidget) as
Button;
btn.Attributes["onmouseove r"] = "document.a ll." +
btn.ClientID + ".src = '/Images/blue.gif'";
This code works for ImageButton...b ut not for Button (it does nothing).
My goal is to change the background image.
Best regards
I would like to handle a "rollover" <asp:Buttonin the code behind with C#
with this kind of code:
Button btn = Page.FindContro l("Button" + numWidget) as
Button;
btn.Attributes["onmouseove r"] = "document.a ll." +
btn.ClientID + ".src = '/Images/blue.gif'";
This code works for ImageButton...b ut not for Button (it does nothing).
My goal is to change the background image.
Best regards
Comment