类型:转载 责任编辑:asp.net 日期:2007/05/23
热门软件下载:
在一个页面里做了几个表单(因为要反得在一个页里提交来刷新),共有好几屏,不希望每次在后面几屏提交后,反复的将页面再次滚至按钮提交处,
在ASP.NET下如何实现?
网友回答:
1. use
<%@ Page SmartNavigation="true" %>
2. Reset the page scroll position after a PostBack
http://www.codeproject.com/aspnet/AspNetScrollbarMove.asp
3. Is it possible to prevent a Web form from scrolling to the top of the page when it posts back to the server?
http://www.wintellect.com/resources/faqs/default.aspx?faq_id=1&page=7#5
参考--
persist the scroll position of an ASP.NET page:
http://www.cnblogs.com/fengzhimei/archive/2004/07/04/21055.aspx