嗨专家, i我正在使用UpdatePanel的表格,这里是更新面板的代码 < asp:UpdatePanel ID = UpdatePanel2 runat = server > < ContentTemplate > < 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% > < asp:CheckBoxList ID = chkStores runat = 服务器 > < 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 宽度 = 210px AutoPostBack = true OnSelectedIndexChanged = ddlMerchant_SelectedIndexChanged > < / asp :DropDownList >到现在工作正常,但现在我想在这里使用UpdateProgress是代码,
< asp:UpdateProgress ID = UpdateProgress1 runat = server AssociatedUpdatePanelID = UpdatePanel2 > < ProgressTemplate > 正在加载.... < / ProgressTemplate > < / asp:UpdateProgress >现在问题是UpdateProgress没有显示消息? 但是如果将下拉列表放在updatepanel中并删除Trigger,则此updateProgress工作正常。 这意味着UpdateProgress无法使用Trigger .. 所以请帮我在更新面板中使用触发器来跳过UPdateProgress
解决方案csharpdotnetfreak.blogspot/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
解决方案 csharpdotnetfreak.blogspot/2012/07/updateprogress-control-example-in-aspnet.html[^] follow the link it might help to you...更多推荐
UpdateProgress控件不与UpdatePanel的Trigger一起使用
发布评论