Submitting forms asynchronously
On a classic ASP.NET page, when the browser POSTs form values, the server processes the values, regenerates the entire web page with a success or failure status message tacked on, and then sends the entire page back to the browser. The browser then replaces the existing page with the new page from the server.
To add to the overhead, the current state of the controls needs to be stored in ViewState because the entire page is replaced. The current state is sent in both, the request from the browser carrying the form data, and in the response from the server carrying the new page with the status message. ViewState is discussed in Chapter 9, Reducing Time to Last Byte in the ViewState section. An example of this type ...
Get ASP.NET Site Performance Secrets now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.