MaintainScrollPositionOnPostBack page property can be used to achieve this in one of the following ways.
1. Application level: To set the property by default for all pages in the website, open web.config and add the attribute to the pages node.
<pages maintainscrollpositiononpostback="true">
2. Page Level: for a particular page, open the aspx and set the property
<%@ Page MaintainScrollPositionOnPostback="true" ...
3. Code level: to set the property programmatically
Page.MaintainScrollPositionOnPostBack = true;</pages>
No comments:
Post a Comment