In ASP.NET 1.1 it was a pain to maintain the position of the scrollbar when doing a postback operation. This was especially true when you had a grid on the page and went to edit a specific row. Instead of staying on the desired row, the page would reload and you'd be placed back at the top and have to scroll down. In ASP.NET 2.0 you can simply add the MaintainScrollPostionOnPostBack attribute to the Page directive:
<% Page Language="C#" ... MaintainScrollPositionOnPostback="true" %>
Want to clarify that if Ajax is not being used then this feature "MaintainScrollPositionOnPostback" property will work properly. But, when Ajax controls are there (script manager, update panels) then the scroll navigates to the top ,whenever a postback is done.
Gaurav 2/26/2010 12:27:00 PM