问题:
When the AssociatedUpdatePanelID property is set to an UpdatePanel control ID, the UpdateProgress control is displayed for postbacks that originate from inside the associated UpdatePanel control.
解决方法:
Sys.WebForms.PageRequestManager.getInstance().add_beginRequest(beginRequestHandler);
Sys.WebForms.PageRequestManager.getInstance().add_endRequest(endRequestHandler);function beginRequestHandler(sender, args)
{
if(args.get_postBackElement().id=='')
{
$get('').style.display='block'
}
}
本文介绍如何在ASP.NET AJAX中使用UpdateProgress控件来显示更新进度。通过设置AssociatedUpdatePanelID属性并利用PageRequestManager的beginRequest和endRequest事件,可以实现在特定UpdatePanel内的异步更新时显示进度提示。
7155

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



