UpdateProgress控件不与UpdatePanel的Trigger一起使用 [英] UpdateProgress contorl not working with UpdatePanel's Trigger

查看:85
本文介绍了UpdateProgress控件不与UpdatePanel的Trigger一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨专家,



i我正在使用UpdatePanel的表格,这里是更新面板的代码

< pre lang =xml> < asp:UpdatePanel ID = UpdatePanel2 runat = server >
< ContentTemplate >
< < span class =code-leadattribute> table border = 0 width = 100% cellspacing = 0 cellpadding = 9 align = center >
< tr runat = ser ver id = trStores 可见 = true >
< td align = right valign = top width = 34% >
选择商店:
< / td > ;
< td align = left width = 65% >
< < span class =code-leadattribute> asp:CheckBoxList ID = chkStores runat = 服务器 >
< span class =code-keyword><
asp:ListItem = - 1 > 所有商店< / asp:ListItem >
< / asp:CheckBoxList >
< / td >
< / tr >
< / table >
< / ContentTemplate >
< 触发器 >
< asp:AsyncPostBackTrigger ControlID = ddlMerchant EventName = TextChanged / >
< / Triggers >
< / asp:UpdatePanel >





在updatePanel中我使用了触发器,因为触发事件的控件在更新之外小组。

这里我在更新面板外面有一个下拉菜单。



 <   asp:DropDownList     ID   =  ddlMerchant    runat   =  server    宽度  = < span class =code-keyword> 210px    AutoPostBack   =  true  

< span class =code-attribute> < span class =code-attribute> OnSelectedIndexChanged = ddlMerchant_SelectedIndexChanged >
< / asp :DropDownList >







到现在工作正常,但现在我想在这里使用UpdateProgress是代码,



 <   asp:UpdateProgress     ID   =  UpdateProgress1    runat   =  server    AssociatedUpdatePanelID   =  UpdatePanel2 >  
< ProgressTemplate >
正在加载....
< / ProgressTemplate >
< < span class =code-leadattribute> / asp:UpdateProgress >







现在问题是UpdateProgress没有显示消息?





但是如果将下拉列表放在updatepanel中并删除Trigger,则此updateProgress工作正常。



这意味着UpdateProgress无法使用Trigger ..





所以请帮我在更新面板中使用触发器来跳过UPdateProgress

解决方案

http://csharpdotnetfreak.blogspot.com/2012/07/updateprogress-control-example-in- aspnet.html [ ^ ]



请点击它可能提供的链接给你......


Hi experts,

i am wokring on a form where i am using a UpdatePanel,here is the code for update panel

<asp:UpdatePanel ID="UpdatePanel2" runat="server">
                                          <ContentTemplate>
                                              <table border="0" width="100%" cellspacing="0" cellpadding="9" align="center">
                                                  <tr runat="server" id="trStores" visible="true">
                                                      <td align="right" valign="top" width="34%">
                                                          Select Store:
                                                      </td>
                                                      <td align="left" width="65%">
                                                          <asp:CheckBoxList ID="chkStores" runat="server">
                                                              <asp:ListItem Value="-1">All Stores</asp:ListItem>
                                                          </asp:CheckBoxList>
                                                      </td>
                                                  </tr>
                                              </table>
                                          </ContentTemplate>
                                          <Triggers>
                                              <asp:AsyncPostBackTrigger ControlID="ddlMerchant" EventName="TextChanged" />
                                          </Triggers>
                                      </asp:UpdatePanel>



In the updatePanel i have used the Trigger because the control which is firing the the event is outside update panel.
here i am having a Dropdown outside the update panel.

<asp:DropDownList ID="ddlMerchant" runat="server" Width="210px" AutoPostBack="true"

                                               OnSelectedIndexChanged="ddlMerchant_SelectedIndexChanged">
                                           </asp:DropDownList>




till now the working fine,but now i want to use the UpdateProgress here is the code,

<asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel2">
                       <ProgressTemplate>
                           Loading....
                       </ProgressTemplate>
                   </asp:UpdateProgress>




Now the problem is UpdateProgress is not displaying the message?


but if put the dropdown inside the updatepanel and remove the Trigger the this updateProgress work fine.

it means UpdateProgress is not working with Trigger..


So help me to dipslay the UPdateProgress using trigger in Update panel

解决方案

http://csharpdotnetfreak.blogspot.com/2012/07/updateprogress-control-example-in-aspnet.html[^]

follow the link it might help to you...


这篇关于UpdateProgress控件不与UpdatePanel的Trigger一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆