UpdateProgress控件不与UpdatePanel的Trigger一起使用

编程入门 行业动态 更新时间:2024-10-26 03:37:32
本文介绍了UpdateProgress控件不与UpdatePanel的Trigger一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

嗨专家, 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一起使用

本文发布于:2023-11-17 03:50:15,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1608723.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:控件   不与   UpdateProgress   UpdatePanel   Trigger

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!