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