更新面板的asyncpostbacktrigger可以有两个控件ID吗? [英] Can the asyncpostbacktrigger of an update panel have two control id?

查看:143
本文介绍了更新面板的asyncpostbacktrigger可以有两个控件ID吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是想稍微混合一下。我在更新面板外面有一个按钮,可以很好地控制更新面板。我还想要另一个按钮来更新触发click事件的同一更新面板。无论如何要做到这一点?



我尝试过:



i有能够用一个按钮更新面板。现在我想再制作一个按钮更新



Just trying to blend things a bit. I have a button outside an update panel which controls an update panel very well. I also want another button to also update this same update panel which the click event is triggered. Anyway to achieve this?

What I have tried:

i have been able to make one button update the panel with this. now i want to make another button update that too

<pre lang="ASP.NET"><asp:UpdatePanel ID="update1" runat="server" UpdateMode="Conditional">
                              <Triggers>
           <asp:AsyncPostBackTrigger ControlID="Dsch" EventName="Click" />
       </Triggers>

推荐答案

怎么样 -

How about -
<triggers>
    <asp:asyncpostbacktrigger controlid="Dsch" eventname="Click">
    <asp:asyncpostbacktrigger controlid="AnotherControl" eventname="respectiveEventName">
</asp:asyncpostbacktrigger></asp:asyncpostbacktrigger></triggers>





如果您的要求与此不同,请告诉我。

谢谢:)



Please let me know if your requirement is different than this.
Thanks :)


这篇关于更新面板的asyncpostbacktrigger可以有两个控件ID吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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