Mvc 3 ajax redirect instead of updating div
It then checks to see whether an error was reported, and if so, processes the details of it, finally indicating to the runtime that the error was handled in custom script.
The Script Manager control provides extensive support for localization of script strings and user interface components; however, that topic is outside of the scope of this whitepaper.
Markup-Enabled Properties: Quite simply, the above script registers a callback with the client-side AJAX runtime for when the asynchronous request has been completed.The ability to integrate partial page rendering is integrated into ASP. When you launch your website, you should see that partial rendering is now enabled, because when you click on the button there will be no flicker, nor will there be any change in the page scroll position (this example does not demonstrate that).If you were to look at the rendered source of the page after clicking the button, it will confirm that in fact a post-back has not occurred - the original label text is still part of the source markup, and the label has changed through Java Script.To understand how the Update Panel works, so that you can best decide when its use is appropriate, you should examine the AJAX exchange.The following example uses an existing site and, Mozilla Firefox with the Firebug extension (Firebug captures XMLHttp Request data).