G
Guest
I am having trouble getting client-side events to fire on ImageButtons.
Instead I am seeing postbacks. The client-side handlers end with "return
false;" but they are never called.
<asp:ImageButton id="myButton" runat="server"
OnClientClick="myButtonClick();" src=... ></asp:ImageButton>
In the javascript:
function myButtonClick()
{
alert("myButton clicked");
return false;
}
What can the problem be?
Thank you!
Eagle
Instead I am seeing postbacks. The client-side handlers end with "return
false;" but they are never called.
<asp:ImageButton id="myButton" runat="server"
OnClientClick="myButtonClick();" src=... ></asp:ImageButton>
In the javascript:
function myButtonClick()
{
alert("myButton clicked");
return false;
}
What can the problem be?
Thank you!
Eagle