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

📄 default.aspx

📁 网站系统建设
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!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>Welcome</title>
</head>
<script language=javascript >
{
  var now=new Date();
  var tt1=now.getHours();
  if((tt1>=6)&&(tt1<=12))
  {
  document.write("Good morning!!!");
  }
  else if((tt1>12)&&(tt1<=18))
  {
  document.write("Good afternoon!!!");
  }
  else
  document.write("Good evening!!!");  
 }
  </script>
  
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Label ID="Label1" runat="server" BackColor="#FF80FF" BorderColor="#8080FF" ForeColor="Gray"
            Style="z-index: 100; left: 32px; position: absolute; top: 45px" Text=" welcome to leran asp.net!!!"
            Width="201px"></asp:Label>
        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Style="z-index: 101;
            left: 309px; position: absolute; top: 43px" Text="Enter" />
        <asp:Image ID="Image1" runat="server" ImageUrl="~/Blue hills.jpg" Style="z-index: 102;
            left: 1px; position: absolute; top: 85px" />
        <asp:Label ID="Label2" runat="server" Style="z-index: 103; left: 454px; position: absolute;
            top: 46px" Text="Label" Width="149px"></asp:Label>
        <asp:HyperLink ID="HyperLink1" runat="server" BackColor="#C0FFC0" ForeColor="Red"
            NavigateUrl="~/Default2.aspx" Style="z-index: 105; left: 681px; position: absolute;
            top: 45px">NEXT</asp:HyperLink>
       

    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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