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 6351 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:
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
Introduction to Web Applications Development
This 376 page eBook "Introduction to Web Applications Development", starts with an introduction to the internet, including a brief history of the TCT/IP protocol and World Wide Web.
100% Free Subscription until Stock lost.View complete list.
Sponsored by