G
gerry
Sung the ASP.NET AJAX framework, and following the control creation examples
from the ajax toolkit I have created a simple custom control that includes a
button with a client side onClick handler.
Returning false from the handler prevents postbacks in IE but in firefox the
handler fires and does its thing but the postback still occurs as well.
I read that changing this from an INPUT SUMIT to a BUTTON would fix this
problem, however that to me is a problem as it always prevents postbacks. I
would still want postbacks to occur in the case where scripting is turned
off or not supported.
If I add an asp:Button to the page and set the
OnClientClick="alert('hi');return false;" the postback is suppressed in all
browsers as it should be - so I assume that the problem is buried somewhere
in the ajax framework.
Any suggestions ?
Gerry
from the ajax toolkit I have created a simple custom control that includes a
button with a client side onClick handler.
Returning false from the handler prevents postbacks in IE but in firefox the
handler fires and does its thing but the postback still occurs as well.
I read that changing this from an INPUT SUMIT to a BUTTON would fix this
problem, however that to me is a problem as it always prevents postbacks. I
would still want postbacks to occur in the case where scripting is turned
off or not supported.
If I add an asp:Button to the page and set the
OnClientClick="alert('hi');return false;" the postback is suppressed in all
browsers as it should be - so I assume that the problem is buried somewhere
in the ajax framework.
Any suggestions ?
Gerry