example4.aspx

来自「这个一个简单的时间获取控件」· ASPX 代码 · 共 42 行

ASPX
42
字号
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Example4.aspx.cs" Inherits="Example4" %>
<%@ Register src="Date.ascx" tagname="Date" tagprefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Example 4</title>
    <link href="cal/popcalendar.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <h2>Example 4: AJAX update panel</h2>
        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
        <br />
        <br />
        <div style="border:solid 1px gray;">
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
                    <br />
                    <br />
                    Please enter a date:<br />
                    <uc1:Date ID="Date1" runat="server" />
                    <br />
                    <asp:Label ID="Label3" runat="server" Text="Label"></asp:Label>
                    <br />
                    <br />
                    <asp:Button ID="cmdAsync" runat="server" Text="Do async postback" 
                        onclick="cmdAsync_Click" />
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
        <p>
            This example shows a date picker and a <strong>Button</strong> control inside of an 
            <strong>UpdatePanel</strong>. </p>
        <p>
        <a href="Default.aspx">Back</a></p>
    </form>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?