wangduck

UpdateProgress的AssociatedUpdatePanelID属性

 

Code

 

上面的代码是实现,点击Button1显示123 ,点击Button2显示321,

关键点在于 Button位置,如果Button在<ContentTemplate>中,则UpdateProgress中的内容可以显示,如果说Button的位置在<ContentTemplate>外,既UpdatePanel的外部的话,UpdateProgress中的内容就不会显示了!

方法二:

如果Button的位置必需在UpdatePanel的外部的话,就得运用PageRequestManager中的initializeRequest事件和endRequest事件,代码如下:

 

Code

 

 

Code

 

 

原文:

http://www.codeproject.com/KB/ajax/UpdateProgress.aspx

posted on 2008-11-17 13:37  体育皇帝  阅读(1424)  评论(0编辑  收藏  举报

导航