login.aspx

来自「这是一个很好的图书管理系统 数据库SQL2005」· ASPX 代码 · 共 64 行

ASPX
64
字号
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>

<!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>简易图书管理系统-用户登录</title>
</head>

<body>
<script type="text/javascript" language="javascript">
function regImg()
{
  document.getElementById("regimg").src="yzm.aspx?id="+Math.random();
}
</script>
    <form id="form1" runat="server">
    <div>
       <div style="text-align: center; margin-top:10%">
           <table border="1" cellpadding="0" cellspacing="0" style="width: 370px">
               <tr>
                   <td colspan="3" style="background-color: silver">
                       图书信息管理系统</td>
               </tr>
               <tr>
                   <td style="width: 80px; height: 22px;">
                           <asp:Label ID="Label1" runat="server" Text="用户名:"></asp:Label></td>
                   <td style="width: 100px; height: 22px;">
                       <asp:TextBox ID="txtname"
                runat="server" Width="110px"></asp:TextBox></td>
                   <td rowspan="2" style="width: 190px">
                       <asp:CheckBox ID="cbName" runat="server" ForeColor="Blue" Text="记住用户名" /></td>
               </tr>
               <tr>
                   <td>
                       <asp:Label ID="Label2" runat="server" Text="密 码:"></asp:Label></td>
                   <td style="width: 100px; height: 22px;">
                       <asp:TextBox ID="txtpwd" runat="server" TextMode="Password" Width="110px"></asp:TextBox></td>
               </tr>
               <tr>
                   <td style="width: 80px; height: 22px;">
                       <asp:Label ID="Label4" runat="server" Text="验证码:"></asp:Label></td>
                   <td style="width: 100px; height: 22px;">
                       <asp:TextBox ID="txtyzm" runat="server" Width="110px"></asp:TextBox></td>
                   <td style="width: 190px; height: 22px">
                       <img id="regimg" src="yzm.aspx"  alt="看不清,请刷新页面!"/><a href ="javascript:regImg()"><span
                           style="font-size: 10pt">看不清,刷新验证码</span></a></td>
               </tr>
               <tr>
                   <td colspan="3">
               <asp:Label ID="Label3" runat="server" ForeColor="Red"></asp:Label></td>
               </tr>
               <tr>
                   <td colspan="3">
                   <asp:Button ID="btnLogin" runat="server" Text="登 录" OnClick="btnLogin_Click" Width="57px" /></td>
               </tr>
           </table>
           </div>
       </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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