I would like to do some client side stuff whenever my page is posting
back. My page has a lot of different buttons and links that will cause
a postback. I would rather not have to put something in each of their
"onclick" functions. I would rather have a global OnPostback function
or something like that. I tried using the form's onsubmit function,
but it only gets called when my buttons are clicked; it doesn't get
called when a link gets clicked or a dropdown list causes a postback.
I noticed that these things call the ASP.NET javascript function
__doPostBack. I don't know if I could somehow modify the __doPostBack
function to call my function that does stuff before a postback. Any
ideas?
thanks in advance.