AspdotnetCodes.com
Search
Articles
Books
Resources
Asp.Net News
Downloads
Free Tech Magazines
Asp.Net Web Hosting
Archives
Softwares
Newsletter
Suggest Us
Link to Us
Feeds Subscription
Articles
Questions & Answers
Tips & Tricks
 How To Maintain Scroll Position after Asp.Net Page PostBack?
Posted by Moderator1 on  10/29/2008 6:46:01 AM 3101 Views
In the Page Directive of the Asp.Net Page, add the property 'MaintainScrollPositionOnPostback' and set its value as 'true'.

Example:

<%@ Page Language="C#" CodeFile="Default.aspx.cs" MaintainScrollPositionOnPostback="true" Inherits="_Default" %>

Now, the page will maintain the scroll bar position in the same location as it is before postback.

Post New Tips/Tricks View all Tips/Tricks

Featured Resources:
Sexy Web Design - Free 71 Page Preview!
An easy-to-follow guide that reveals the secrets of how to build your own breathtaking web interfaces from scratch.
Take Advantage of Oracle's 2 Day DBA Course
This course is designed to complement the Oracle 2 Day DBA documentation.
100% Free Subscription until Stock lost.View complete list.
Sponsored by