Possible Duplicate:
How to intercept any postback in a page? - ASP.NET
I need to achieve the following target: I have an Asp.Net web form and I have a javascript function function myfunc()
. I know that everytime that a control causes the page to post back, it automatically makes a call to the generated doPostBack()
javascript function.
What I need to do is finding a way to tell the page to make a call to myfunc()
right before EVERY call to doPostBack
is performed.
In few words: before the doPostBack script activates, the page must run another javascript function!
Thankyou