Easy way to maintain scroll position with ASP.NET MVC2?
I was wondering if there was a way to easily maintain scroll position using MVC? I've seen a few ways of doing it with javascript, but I开发者_如何学编程 would like an easy way like webforms, such as the MaintainScrollPositionOnPostBack page property. Does such a thing exist or am I going to have to use javascript?
Sorry - there's nothing built into MVC - you need javascript
Maintain Scroll Position of EVERY Element on PostBacks | [Mostly] Technical Notes by Mahdi Hasheminezhad
精彩评论