maintainScrollPositionOnPostBack in ASP.NET MVC

6k Views Asked by At

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.

2

There are 2 best solutions below

3
On BEST ANSWER

There are no longer PostBacks in ASP.NET MVC. There's a nice jquery scrollsaver plugin which is worth checking out.

0
On

Not PostBack-related, but this answer helped me maintain scroll position after form was submitted:
How do I maintain scroll position in MVC?