prevent _doPostBack getting rendered in button markup
Posted
by Christo Fur
on Stack Overflow
See other posts from Stack Overflow
or by Christo Fur
Published on 2010-01-21T14:26:56Z
Indexed on
2010/05/29
2:02 UTC
Read the original article
Hit count: 303
Hi
Is it possible to prevent the _doPostBack() call getting rendered on a button?
I would like add some custom logic prior to calling the postback.
I have added an onClick event to the button
e.g.
<button id="manualSubmit" runat="server" class="manual-submit" onclick="$('#jeweller-form').hide();" />
However, this just gets rendered inline before the _doPostBack() But the postback gets fired before the jQueryHide takes place
I would like to call my own JS function then manually trigger the postback
any ideas?
© Stack Overflow or respective owner