This function in the client side code is the heart of the web form postback functionality. The only client side form elements that result in a form post is a submit button or a image button. The only alternative is the form.submit() method on the form element. When you create autopostback behavior in a web form (for example, when you set AutoPostback=true for a dropdownlist) the ASP.NET framework makes the rendering engine emit that _doPostback function in the client javascript. The 'onChange' event of the dropdownlist calls this method. The method prepares the request for posting and calls the form.submit(). This posts the form to the page and the server triggers the postback events, thus completing the postback cycle.
-
Peter