Click here to Skip to main content
15,888,069 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have MVC web application where i need to update a page for every "x" seconds. But constrint is i need to retain the scroll postion same even after the refresh. Thanks in advance

What I have tried:

i have tried adding following in JS
window.locatio.reload(false) but this refreshing the page entirely and scroll position is changing for every "x" seconds.
Posted
Comments
F-ES Sitecore 17-Apr-18 5:08am    
If you need to do this you should be using ajax to do your updates rather than refreshing the whole page.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900