« Home | Offline Mode of your WebSite » | Handy Extension Methods for ASP.NET MVC's UrlHelper » | Credit Card Expiration Date DropDownList Sample Code » | Visual Studio Automatically Changing the IDs in So... » | Better Perfomance of Web Applications » | Display Numerals in Arabic Format » | The Controls collection cannot be modified because... » | Team Foundation PowerToys » | String is All Lower or All Upper Case » | Detecting Chrome browser in ASP.NET »

Maintain Scroll Position on PostBack in ASP.NET

In order to maintain the page scroll position after the page gets postback, ASP.NET gives us three methods. They are:


1. In Web.config :
<pages maintainScrollPositionOnPostBack="true">

2. In single Page :
<%@ Page MaintainScrollPositionOnPostback="true" ...

3. Programatically :

Page.MaintainScrollPositionOnPostBack = true;

Labels: , , , , , ,

Post a Comment