ASP.Net - How do I retain scroll position after a postback?

By [)ia6l0 iii

Use Page.MaintainScrollPositionOnPostBack to retain the scroll position after a postback. You can set it as a page directive: <asp:Page MaintainScrollPositionOnPostBack="True" />

Related FAQs

If you browse your mvc pages, through modern day browsers like Chrome - you will find that there would be additional requests like the ones to the favicon. This is the icon, that appears to the left of the web address in the browser once the page loads.
ASP.Net 4.0 provides the SetSessionStateBehavior method through the HTTPContext Class.
Use the Override versions of the page methods instead of thedefault page methods. This would ensure that the .Net runtime does not have to invoke delegates.
Use the FilePathResult to return a file content as the http response.
Use the "UrlReferrer" property of the Request object to retrieve the previous page url.
Use the "IsSecureConnection" property of the HttpRequest object to find if a Request is from a HTTP or HTTPS connection
ASP.Net - How do I retain scroll position after a postback?  (1296 Views)