Tuesday, June 19, 2012

// // Leave a Comment

How to retain or maintain current scrolling position even after a postback in an ASP.NET Page

If you are pressing a button or doing any post-back action in the middle of a scrolling page. Then the page will render back from the server and your cursor is on the top of the page. So you re-scroll to the position where you do the previous action.

To resolve this problem .NET Provide a wonderful solution 

The solution is as follows 

<%@ Page MaintainScrollPositionOnPostback="true" %>

0 comments:

Post a Comment