Keith Adler
Keith Adler

Reputation: 21178

maintainScrollPositionOnPostBack in ASP.NET MVC

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.

Upvotes: 3

Views: 6159

Answers (2)

Kon
Kon

Reputation: 27441

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

Upvotes: 0

Darin Dimitrov
Darin Dimitrov

Reputation: 1039238

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

Upvotes: 3

Related Questions