jQuery和的UpdatePanel? [英] jquery and updatepanel?
本文介绍了jQuery和的UpdatePanel?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在ASP.NET一个UpdatePanel,做了部分页面刷新。
I have an updatepanel in ASP.NET that does a partial page refresh.
我已经使用jQuery的上()
方法,但 $(文件)。就绪一些成功(函数(){})
页面初始加载时才会被调用,而不是每个UpdatePanel的刷新之后。
I've had some success using jQuery's on()
method, however $(document).ready(function(){})
is only called during the initial load of a page, rather than after each updatepanel refresh.
我想我可以使用可能引发它的 ScriptManager.RegisterStartupScript()
,但将preFER一个清洁的方法。是否有任何存在?
I think I could probably trigger it using 'ScriptManager.RegisterStartupScript()
' but would prefer a 'cleaner' method. Do any exist?
推荐答案
你应该使用的页面加载()的JS函数
you should use pageLoad() function in JS
function pageLoad()
{
// put your code when returning from update panel request.
}
这篇关于jQuery和的UpdatePanel?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文