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

📄 example5.aspx

📁 这个一个简单的时间获取控件
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Example5.aspx.cs" Inherits="Example5" %>
<%@ 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 5</title>
    <link href="cal/popcalendar.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <h2>Example 5: Different date formats</h2>
        <p>
            U.S. date format mm/dd/yyyy:<uc1:Date ID="Date1" runat="server" 
                DateFormat="MM/dd/yyyy" />
        </p>
        <p>
            European date format dd.mm.yyyy:<uc1:Date ID="Date2" runat="server" 
                DateFormat="dd.MM.yyyy" />
        </p>
        <p>
            ISO 8601 date format yyyy-mm-dd:<uc1:Date ID="Date3" runat="server" 
                DateFormat="yyyy-MM-dd" />
        </p>
        <p>
            &nbsp;</p>
        <p>
            <asp:Button ID="cmdSubmit" runat="server" OnClick="cmdSubmit_Click" Text="Submit" />&nbsp;</p>
        <p>
            <asp:Label ID="lblResult" runat="server"></asp:Label></p>
        <p>
            <asp:Label ID="lblDate1" runat="server"></asp:Label>
            <br />
            <asp:Label ID="lblDate2" runat="server"></asp:Label>
            <br />
            <asp:Label ID="lblDate3" runat="server"></asp:Label>
        </p>
        <p>
            In this example the <span style="font-size: 11pt; color: blue; font-family: Courier New">
                <strong>DateFormat</strong></span> property of each date picker control is set.
        </p>
        <p>
            <a href="Default.aspx">Back</a></p>
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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