I am trying to write code that will disable the submit button (or all submit buttons) on the page to avoid double postback.
I was thinking of creating my own javascript function for postback (and using postback javascript with GetPostbackEventReference), but maybe there are some better ways to do this? Or maybe there is another way to avoid double reverse gears?
Update
I also want to find a better place to call javascript, for example. if I call the following script in the onclick button handler, then the server button click event will not be connected.
$('input[type=submit]').attr('disabled', 'disabled')
source
share