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

📄 logon.aspx

📁 .net的一个很经典很普通的实例
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Logon.aspx.cs" Inherits="Logon" %>

<%@ Register Src="UserControl/Control_foot.ascx" TagName="Control_foot" 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">
<link rel="shortcut icon" href="/MovieShow/Images/Real-doc.ico" type="image/x-icon" />
    <title>MovieShow--用户登录</title>
</head>
<script language="javascript" type="text/javascript">
function logon()
{
   if(document.getElementById("TextBox1").value=="")
     alert("请输入用户名...!");
   else if(document.getElementById("TextBox2").value=="")
     alert("请输入用户密码...!");
    else
    {
      var txt1=document.getElementById("TextBox1").value;
      var txt2=document.getElementById("TextBox2").value;
      var context=document.getElementById("Label2");
      var arg="confirm|"+txt1+"|"+txt2;
      context.innerHTML= "<IMG SRC='/MovieShow/Images/wait.gif' />Loading...";
      <%= ClientScript.GetCallbackEventReference(this, "arg", "ReceiveServerData", "context") %>
    }
}
function ReceiveServerData(result,context)
{
 context.innerHTML=result;
    if(result=="登录成功!")
   { 
     
     window.location.reload("Default.aspx");
   }  
 
}
function login()
{
   if(document.getElementById("TextBox1").value=="")
     alert("请输入用户名...!");
   else if(document.getElementById("TextBox2").value=="")
     alert("请输入用户密码...!");
    else
    {
      var txt1=document.getElementById("TextBox1").value;
      var txt2=document.getElementById("TextBox2").value;
      var context=document.getElementById("Label2");
      var arg="confirm|"+txt1+"|"+txt2;
      context.innerHTML= "<IMG SRC='/MovieShow/Images/wait.gif' />Loading......";
      <%= ClientScript.GetCallbackEventReference(this, "arg", "ReceiveServerData1", "context") %>
    }
}
function ReceiveServerData1(result,context)
{
 context.innerHTML=result;
    if(result=="登录成功!")
   { 
    
     window.location.reload("admin/admin.aspx");
   }  
 
}
</script>
<body>
    <form id="form1" runat="server">

       <div  style=" width:820px; height:150px;left: 104px; top: 4px; z-index: 102; position: absolute;" >
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="820" height="150">
    <param name="movie" value="/MovieShow/Navigation/Head.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    <embed src="/MovieShow/Navigation/Head.swf" width="820" height="150" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>
  </object>
</div>
    <div>
        <div style=" background-image:url(/MovieShow/Images/logon.JPG);  z-index: 103; left: 164px; width: 708px; position: absolute; top: 160px;
            height: 452px">
            <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Images/login_go.jpg"
                Style="z-index: 100; left: 444px; position: absolute; top: 134px" />
            <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="~/Images/rgt.gif" Style="z-index: 101;
                left: 256px; position: absolute; top: 288px" OnClick="ImageButton2_Click" />
            <asp:ImageButton ID="ImageButton3" runat="server" ImageUrl="~/Images/admin.gif" Style="z-index: 102;
                left: 392px; position: absolute; top: 288px" />
            <asp:TextBox ID="TextBox1" runat="server" Style="z-index: 103; left: 268px; position: absolute;
                top: 142px" Width="166px"></asp:TextBox>
            <asp:TextBox ID="TextBox2" runat="server" Style="z-index: 104; left: 268px; position: absolute;
                top: 182px" Width="166px" TextMode="Password"></asp:TextBox>
            <asp:Label ID="Label1" runat="server" Font-Bold="False" Font-Size="Smaller" Style="z-index: 105;
                left: 212px; position: absolute; top: 236px" Text="保存cookie时间:"></asp:Label>
            <asp:RadioButton ID="RadioButton1" runat="server" Font-Size="Smaller" ForeColor="White"
                GroupName="1" OnCheckedChanged="RadioButton1_CheckedChanged" Style="z-index: 106;
                left: 416px; position: absolute; top: 232px" Text="一个月" Font-Bold="True" />
            <asp:RadioButton ID="RadioButton2" runat="server" Font-Size="Smaller" ForeColor="White"
                GroupName="1" Style="z-index: 107; left: 368px; position: absolute; top: 232px"
                Text="一天" Font-Bold="True" />
            <asp:RadioButton ID="RadioButton3" runat="server" Font-Size="Smaller" ForeColor="White"
                GroupName="1" Style="z-index: 108; left: 476px; position: absolute; top: 232px"
                Text="一年" Font-Bold="True" />
            <asp:RadioButton ID="RadioButton4" runat="server" Font-Size="Smaller" ForeColor="White"
                GroupName="1" Style="z-index: 109; left: 308px; position: absolute; top: 232px"
                Text="2小时" Font-Bold="True" />
            <asp:Label ID="Label2" runat="server" Font-Size="Smaller" ForeColor="Red" Style="z-index: 111;
                left: 308px; position: absolute; top: 428px" Width="236px"></asp:Label>
        </div>
        <div style=" background-image:url(/MovieShow/Images/foot.jpg);z-index : 104; left: 0px; width: 156px; position: absolute; top: 452px;
            height: 168px">
        </div>
    
    </div>
        <div style="z-index: 105; left: 168px; width: 72px; position: absolute; top: 164px;
            height: 72px">
              <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" style="position: static; width: 692px; height: 440px;">
    <param name="movie" value="/MovieShow/Navigation/water.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    <embed src="/MovieShow/Navigation/water.swf" width="820" height="150" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>
  </object>
        </div>


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

⌨️ 快捷键说明

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