Search This Blog

Monday 7 March 2016

Maintain scroll position after postbacks in ASP.Net

You can achieve it 3 ways

Page Level (Code Behind file or .cs file)
Programmatically
Page.MaintainScrollPositionOnPostBack = true;

Page Level (Design File or .aspx file)
In the Page directive
<%@ Page MaintainScrollPositionOnPostback="true"%>

Application Level (Web.config)
Under <system.web> section

<pages maintainScrollPositionOnPostBack="true"/>

No comments:

Post a Comment