zoukankan      html  css  js  c++  java
  • VS2008最基本用法updatepanel

    (最重要的是要添加ScriptManager 控件)不说了,直接看码:

    aspx:

            <asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />
            <br />
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
            <br />
            <br />
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <asp:Label ID="lblname" runat="server" Text="名字"></asp:Label>
                    <br />
                    <br />
                </ContentTemplate>
                <Triggers>
                 <asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click" />
                </Triggers>
               
            </asp:UpdatePanel>

    cs码:

       protected void Button1_Click(object sender, EventArgs e)
            {
                lblname.Text = "dddd";
            }


       本人博客的文章大部分来自网络转载,因为时间的关系,没有写明转载出处和作者。所以在些郑重的说明:文章只限交流,版权归作者。谢谢

  • 相关阅读:
    ios布局约束
    IOSanimationDidStop
    iosanimationWithKeyPath
    CALayer的分析
    关于集合的小demo
    关于集合越界后 不能使用迭代器遍历的处理方式
    html--day02
    关于LIst Set Map 异常的知识点---我的笔记
    css入门
    html相关标记的含义
  • 原文地址:https://www.cnblogs.com/wzg0319/p/1742651.html
Copyright © 2011-2022 走看看