How do I maintain scroll position in MVC?

Posted by Eric Brown on Stack Overflow See other posts from Stack Overflow or by Eric Brown
Published on 2009-01-27T17:53:24Z Indexed on 2010/06/15 4:42 UTC
Read the original article Hit count: 289

Filed under:
|
|
|

Im working on a project in MVC and have enjoyed learning about it. There are a few growing pains but once you figure them out it's not bad. One thing that is really simple in the WebForms world is maintaining the scroll position on a page. All you do is set the MaintainScrollPositionOnPostback property to true. However, in MVC, Im not using postbacks so this will not work for me. What is the standard way of handling this?

Edit: Ajax is acceptable, but I was also wondering how you would do it without AJAX.

© Stack Overflow or respective owner

Related posts about html

Related posts about asp.net-mvc