Maintain scroll position in your custom ASP.NET pages developed for SharePoint

Hello :)

I can recall more than a few instances where I might have developed custom pages to support corporate SharePoint integrated deployments with or without Dynamic Integration (specifically for long scrolling dashboard pages that are customized). And there have been quite a few cases that my friends have discussed with me on the page scrolling annoyance after a postback has occured!

This is a very common behaviour and a very simple issue to resolve since we talk about ASP.NET pages. Obvious, they all have their Page Directives, ain't it?

Include the following tag into your page directive:

<%@ Page ... MaintainScrollPositionOnPostback="true" %>


Simple! Try it...

0 comments: