<script type="text/jscript" >
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_endRequest(function () {
// re-bind your jquery events here
BindEvents();
});
</script>

本文介绍了一种在ASP.NET AJAX中有效重新绑定jQuery事件的方法,通过在PageRequestManager的endRequest事件中调用自定义的BindEvents函数,确保页面更新后事件依然有效。
140

被折叠的 条评论
为什么被折叠?



