How do I maintain the scroll position on a postback in ASP.NET MVC? The directive maintainScrollPositionOnPostBack on the page and in the web.Config does not seem to apply.
Asked
Active
Viewed 5,950 times
3
-
4Postbacks are not part of ASP.NET MVC – spender Jan 26 '11 at 14:09
2 Answers
3
There are no longer PostBacks in ASP.NET MVC. There's a nice jquery scrollsaver plugin which is worth checking out.

Darin Dimitrov
- 1,023,142
- 271
- 3,287
- 2,928
-
-
-
Here is a working solution: https://github.com/evaldsurtans/maintainscroll.jquery.js – leppie Dec 05 '17 at 08:23
0
Not PostBack-related, but this answer helped me maintain scroll position after form was submitted:
How do I maintain scroll position in MVC?