ASP.NET Ajax partial postback and jQuery problem

被刻印的时光 ゝ 提交于 2019-12-01 12:56:47

Just call it once the page loads as well, you can do that by adding this at the end:

$(EndRequestHandler);

This will cause that code to run both when an UpdatePanel refreshes, and when the page first loads. When you pass in a function to the jQuery constructor, you're calling the jQuery(callback) version, if it's easier to think about, you're doing the short version of this:

$(document).ready(EndRequestHandler); //or..
$(document).ready(function() { EndRequestHandler(); });
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!