[英]maintainScrollPositionOnPostBack in ASP.NET MVC
How do I maintain the scroll position on a postback in ASP.NET MVC? 如何在ASP.NET MVC中保留回发中的滚动位置? The directive maintainScrollPositionOnPostBack on the page and in the web.Config does not seem to apply. 页面和web.Config中的指令maintainScrollPositionOnPostBack似乎不适用。
There are no longer PostBacks in ASP.NET MVC. ASP.NET MVC中不再有PostBack。 There's a nice jquery scrollsaver plugin which is worth checking out. 有一个很好的jquery scrollsaver插件值得一试。
Not PostBack-related, but this answer helped me maintain scroll position after form was submitted: 不是PostBack相关的,但这个答案帮助我在表单提交后保持滚动位置:
How do I maintain scroll position in MVC? 如何在MVC中保持滚动位置?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.