Maintaining Scroll Position after PostBackASP.NET September 1, 2012 Comments Off on Maintaining Scroll Position after PostBack
Here is code snippet to maintain the scroll position after post back.
Add the following line in your web.config file or modify the existing one
Add the the following attribute in the page directive of your aspx page
<%@ Page MaintainScrollPositionOnPostback="true"
Even you set in the code behind file
Page.MaintainScrollPositionOnPostBack = true;