.net - 嵌套 UpdatePanel 触发器

标签 .net asp.net ajax asp.net-ajax updatepanel

我的子 UpdatePanel 更新其内容及其父 UpdatePanel 的内容。

<asp:UpdatePanel ID="UpdatePanel1" 
                 runat="server">
    ...
    <asp:UpdatePanel ID="UpdatePanel2" 
                     runat="server">
        ...
    </asp:UpdatePanel>
    ...
</asp:UpdatePanel>

我不希望每次子更新时我的父 UpdatePanel 都会更新。

最佳答案

<asp:UpdatePanel ID="UpdatePanel1" ChildrenAsTriggers="False"
                 UpdateMode="Conditional"
                 runat="server">

</asp:UpdatePanel>

关于.net - 嵌套 UpdatePanel 触发器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1595922/

相关文章:

.net - 优化 vba 宏 excel 2007 的循环

.net - 如何在 .NET 安装项目中添加卸载选项?

javascript - 为什么我的 JQuery .ajax 请求不是并行进行的?

c# - 使用 getJSON 显示数组

jquery - 在 updatepanel 部分回发中丢失通过 jquery 添加的 css 类

C# .net Core - 获取磁盘上的文件大小 - 跨平台解决方案

c# - if/else 变量声明和对象在当前上下文错误中不存在

c# - 我怎样才能在 linq asp.net mvc 5 中拥有动态的 where 条件?

asp.net - 增加 MVC Controller 操作的 maxRequestLength

javascript $(window).width() 属性在 Internet Explorer 中不起作用