Chris Pietschmann

husband, father, hacker, entrepreneur, futurist, innovator, autodidact


ASP.NET: Maintain Scroll Position On Postback

The MaintainScrollPositionOnPostback page directive attribute allows pages to automatically maintain the current scroll position across postbacks. This feature is usefull 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 usefull feature.

blog comments powered by Disqus