javascript - Programmatically Set & Get browser Window Coordinate Values (x,y) in C# -


i know how using javascript when i'm doing postback this: window.scrollto(x, y);. have new scenario have return exact scroll position page (page1.aspx) page (page2.aspx). want able scroll position of page 1 , store in query string of url page2 can use set scroll position when returning page1.

i choose in c# javascript not handle cross page navigation nicely. wrong though, need this. help.

you can in javascript. store value in local storage , clear when used.

 loadsetting = function (key, value) {     value = window.localstorage.getitem(key);     return value; }  savesetting = function (key, value, bauto) {     window.localstorage.setitem(key, value); }  clearsetting = function (key) {     window.localstorage.removeitem(key); } 

Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -