zoukankan      html  css  js  c++  java
  • 嵌套的UpdatePanel

        <form id="form1" runat="server">
            
    <asp:ScriptManager ID="ScriptManager1" runat="server">
            
    </asp:ScriptManager>

        
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
            
    <ContentTemplate>
                
    <%= DateTime.Now %>
                
    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                    
    <ContentTemplate>
                        
    <%= DateTime.Now %>
                        
    <asp:Button ID="Button1" runat="server" Text="Button" />
                    
    </ContentTemplate>
                
    </asp:UpdatePanel>
            
    </ContentTemplate>
        
    </asp:UpdatePanel>

        
    </form>
    点击Button1按钮,只有UpdatePanel2里面的时间会更新,而UpdatePanel1中的时间不会更新,当前套UpdatePanel时,里面的UpdatePanel的控件回发不会引起外面一层的UpdatePanel更新
  • 相关阅读:
    MZOJ #72 数字
    MZOJ #71 maple做数学题
    MZOJ #70 FFF团
    luogu 2051 [AHOI2009]中国象棋
    uva 280
    uva 260
    文件的基本处理
    文件的基础
    Turtle库
    π的计算
  • 原文地址:https://www.cnblogs.com/timy/p/1167814.html
Copyright © 2011-2022 走看看