Scroll to top page

net use web methods to save data from javascript when I click Save all pages at the top, how can I save the state position after sending back

0
source share
4 answers

You can install it programmatically

Page.MaintainScrollPositionOnPostBack = true;

In page ad

<%@ Page MaintainScrollPositionOnPostback="true" %>

Or in the web.configs section <system.web>.

<pages maintainScrollPositionOnPostBack="true" />
+1
source

The reason the page goes back to the beginning is because it is being transmitted and therefore reloading.

If you want to keep the page position, you have 2 options;

1) (. http://www.hypergurl.com/anchors.html) 2) AJAX,

2 , -, AJAX, MVC, JQuery.

0

<%@ Page MaintainScrollPositionOnPostback="true" %>
0

I solved the issue, and my way of doing this was as follows:

I put javascript:void(0)in the tag aas below:

<a href="javascript:void(0)">
0
source

All Articles