分享

asp.net局部刷新技术

 趋明 2012-03-29
主要控件:UpdatePanel 、ScriptManager

<html xmlns="http://www./1999/xhtml" >
     <head id="Head1" runat="server">
          <title>Untitled Page</title>
     </head>
     <body>
          <form id="form1" runat="server">
               <asp:ScriptManager EnablePartialRendering="true"
                    ID="ScriptManager1" runat="server"></asp:ScriptManager>
               <div>
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                         <ContentTemplate>
                              <asp:Label ID="Label1" runat="server"
                                   Text="This is a label!"></asp:Label>
                              <asp:Button ID="Button1" runat="server"
                                   Text="Click Me" OnClick="Button1_Click" />
                         </ContentTemplate>
                    </asp:UpdatePanel>
               </div>
               
               <asp:DropDownList ID="DropDownList1" runat="server">
                   <asp:ListItem>s</asp:ListItem>
                   <asp:ListItem>d</asp:ListItem>
                   <asp:ListItem>sdfg</asp:ListItem>
               </asp:DropDownList>
               <p>
                   <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
               </p>
               
          </form>
     </body>
</html>

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约