I was looking at the Google analytics service I have installed on this blog, there is a section in which you can find top search queries which users used to reach my blog. And the title of this post appeared in the results. I decided to post a short answer to this question. The answer is that button click executes first on the client side and then, if the execution returns true or void - a post back is invoked using __doPostBack with a parameters to let the server know it needs to invoke the button OnClick event handler. Prior the OnClick handler is invoked, the server will invoke the OnLoad event handler for the page, setting Page.IsPostBack to true. |
All the stuff that bothers software developer in his everyday tasks.
Jul 4, 2008
button click and onclientclick event execution order
Subscribe to:
Posts (Atom)