You could use the
onsubmit event of your page's 16 form. This happens before the form is submitted, and 15 will allow you to stop submission of the 14 form if you need by cancel bubbling. In 13 case you need this, the last 2 lines in 12 this example will cancel bubbling across 11 browsers.
This will 6 work for any element that raises a PostBack, so 5 you don't have to manually call
ShowLoading() on every 4 button or form element you may have on your 3 page. I would replace the contents of
ShowLoading() with 2 some real loading functionality and not 1 just the example code I threw together.
Look at OnClientClick, you can add a call 4 to a js function, or inline JS there.
Or 3 you can wire into the button with JQuery 2 and display a modal dialog with an async 1 callback.
More Related questions