⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 example1.aspx

📁 这个一个简单的时间获取控件
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Example1.aspx.cs" Inherits="Example1" %>
<%@ 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 1</title>
    <link href="cal/popcalendar.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <h2>Example 1: A simple date picker</h2>
        <p>
            Please choose a date:
            <uc1:Date ID="Date1" runat="server" />
        </p>
        <p>
            <asp:Button ID="cmdSubmit" runat="server" OnClick="cmdSubmit_Click" Text="Submit" />&nbsp;<asp:CheckBox
                ID="chkEnabled" runat="server" AutoPostBack="True" Checked="True" OnCheckedChanged="chkEnabled_CheckedChanged"
                Text="enabled" /></p>
        <p>
            <asp:Label ID="lblResult" runat="server"></asp:Label>&nbsp;</p>
        <p>
            This is a very basic example of the date picker control. In the click event of the
            "Submit" button the selected date is read from the <strong><span style="font-size: 11pt;
                color: blue; font-family: Courier New">CalendarDate</span> </strong>property
            of the date picker control. If an invalid date has been entered, this property returns
            <span style="font-size: 11pt; color: blue; font-family: Courier New"><strong>DateTime.MaxValue</strong></span>,
            but the entered text can still be read from the <span style="font-size: 11pt; color: blue;
                font-family: Courier New"><strong>CalendarDateString</strong></span> property.</p>
        <p>
            Additionally this example shows how the date picker control can be disabled by setting
            the property <span style="font-size: 11pt; color: blue; font-family: Courier New"><strong>
                Enabled</strong></span> to <span style="font-size: 11pt; color: blue; font-family: Courier New">
                    <strong>false</strong></span>.</p>
        <p>
            <a href="Default.aspx">Back</a></p>
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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