Andrew Connell

ASP.NET improvement: bypassing the postback affects, but keeping the features

Nikhil Kothari recently posted about some enhancements he's working on after a conversation with some members of the VS.NET development team at the recent TechEd in San Diego. One of the biggest problems (least in my opinion) with postbacks in the current version of ASP.NET is the user sometimes get a surprise when the page reloads in front of their face when they click on something... sometimes in the middle of a scroll or another data entry. When the page reloads, the user has lost their scrolling position.Nikhil's way involves using the event that currently requires a postback to create a XMLHTTP request on the client, send to the server for processing (the postback), and then use the client script to update the UI based on the XMLHTTP response. This method is basically a callback. IE and Mozilla already have XMLHTTP in them... too bad Netscape doesn't (is that still around?). Pretty cool implenentation.» Read more: Async callbacks in server controls (Nikil Kothari's Weblog)...

Nikhil Kothari recently posted about some enhancements he’s working on after a conversation with some members of the VS.NET development team at the recent TechEd in San Diego.

One of the biggest problems (least in my opinion) with postbacks in the current version of ASP.NET is the user sometimes get a surprise when the page reloads in front of their face when they click on something… sometimes in the middle of a scroll or another data entry. When the page reloads, the user has lost their scrolling position.

Nikhil’s way involves using the event that currently requires a postback to create a XMLHTTP request on the client, send to the server for processing (the postback), and then use the client script to update the UI based on the XMLHTTP response. This method is basically a callback. IE and Mozilla already have XMLHTTP in them… too bad Netscape doesn’t (is that still around?). Pretty cool implenentation.

» Read more: Async callbacks in server controls (Nikil Kothari’s Weblog)

Andrew Connell
Founder & Chief Course Artisan, Voitanos LLC. | Microsoft MVP
Written by Andrew Connell

Andrew Connell is a web developer with a focus on Microsoft Azure & Microsoft 365. He’s received Microsoft’s MVP award every year since 2005 and has helped thousands of developers through the various courses he’s authored & taught. Andrew’s the founder of Voitanos and is dedicated to delivering industry-leading on-demand video training to professional developers. He lives with his wife & two kids in Florida.