filename: default.aspx
<
%@page
Language="c#" %>
<script language="c#" runat="server">
void disp_time()
{
System.DateTime date1 = new System.DateTime(2007, 8, 24);
Response.Write("今天是: " + System.DateTime.Now.ToString() + " now.");
Response.Write("<br>");
Response.Write("距离本人离职时间还有 " + (date1 - System.DateTime.Now).Days + " 天。");
}
</script>
<html>
<head>
<title>VS.NET 2005</title>
</head>
<body>
<% disp_time(); %>
</body>
</html>
<script language="c#" runat="server">
void disp_time()
{
System.DateTime date1 = new System.DateTime(2007, 8, 24);
Response.Write("今天是: " + System.DateTime.Now.ToString() + " now.");
Response.Write("<br>");
Response.Write("距离本人离职时间还有 " + (date1 - System.DateTime.Now).Days + " 天。");
}
</script>
<html>
<head>
<title>VS.NET 2005</title>
</head>
<body>
<% disp_time(); %>
</body>
</html>