How to fix the scroll positon after postback in asp.net
Because after postback page is refreshing. And scroll bar goes to the top of page.
How to fix the scroll positon after postback in asp.net
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Khargesh RajputRank #616 · 3.9K reputationPosted Mar 27, 2015, 3:17 AM EDT
or use maintainScrollPositionOnPostBack
To maintain the scroll position for the large web page you can use on of these methods :
1- use Web.config page section <pages maintainScrollPositionOnPostBack="true" />
: this will maintains the scroll positions for all the web site pages.
2- in the page declaration <%@ Page MaintainScrollPositionOnPostback="true" %> : this will maintains the scroll position for this page only.
3- programmatically from code behind System.Web.UI.Page.MaintainScrollPositionOnPostBack = true; : this will maintains the scroll position for this page only (the same as page declration).