Home > Code > ASP.NET > Maintain Scroll Position on Postbacks using ASP.NET

Maintain Scroll Position on Postbacks using ASP.NET

by Narain Siddharth   on Nov 13, 2010   Category: ASP.NET   |  Views: 2545    |  Points: 25   |  Silver 



In three ways we can achieve this scroll position

1. In web.config file

<pages maintainScrollPositionOnPostBack="true" />

2. In the page declaration

<%@ Page MaintainScrollPositionOnPostback="true" %>

3. Programmatically we can set it

Page.MaintainScrollPositionOnPostBack = true;





Post Code  |  Code Snippet Home

User Responses


No response found, be the first to review this code snippet.

Submit feedback about this code snippet

Please sign in to post feedback

Latest Posts