Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的页面上,我在更新面板中有一个列表框。我成功地捕获了滚动位置,但是当更新面板刷新时,我无法找到合适的 JavaScript 事件来调用我的函数来设置滚动位置。有任何想法吗?
我真的希望“onAfterUpdate”能够工作,但没有......
请求和 UpdatePanel 完成后,您可以点击 PageRequestManager 并触发您自己的委托:
<script type="text/javascript" language="javascript"> Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler); function EndRequestHandler(sender, args) { //your code here } </script>