ASP.NET: Maintain Scroll Position On Postback

Apr 3, 2006  • ASP.NET

The MaintainScrollPositionOnPostback page directive attribute allows pages to automatically maintain the current scroll position across postbacks. This feature is useful for large pages where scrolling is necessary to view input controls down further on the page. This works in ASP.NET 2.0 and later.

 <%@ Page MaintainScrollPositionOnPostback="true" %>

A simple but very useful feature.