When web pages are posted back to the server, by default user is returned to the top of the page. on a large web page, you might have a requirement to scroll down the user automatically to the last position on the page.
Maintainscrollpositiononpostback page property can be used to achieve this in one of the following ways.
- Application level:To set the property by default for all pages in the website, open web. config and add the attribute to the pages node.
<Pages maintainscrollpositiononpostback = "true">
- Page Level:For a special page, open the aspx and set the property
<% @ Page maintainscrollpositiononpostback = "true "...
- Code Level:To set the property programmatically
Page. maintainscrollpositiononpostback = true;
This article goes to: http://blogs.msdn.com/webdevelopertips/archive/2009/06/08/tip-75-did-you-know-how-to-maintain-scrollposition-after-post-back.aspx
Hope this helps.