register.aspx
来自「本系统实现了网上考试的目的」· ASPX 代码 · 共 214 行
ASPX
214 行
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="register" %>
<!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>
<script language="JavaScript">
<!-- Hide
var timerID = null
var timerRunning = false
function MakeArray(size) {
this.length = size;
for(var i = 1; i <= size; i++)
{
this[i] = "";
}
return this;
}
function stopclock (){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false
}
function showtime (){
var now = new Date();
var year = now.getYear();
var month = now.getMonth() + 1;
var date = now.getDate();
var hours = now.getHours();
var minutes = now.getMinutes();
var seconds = now.getSeconds();
var day = now.getDay();
Day = new MakeArray(7);
Day[0]="星期天";
Day[1]="星期一";
Day[2]="星期二";
Day[3]="星期三";
Day[4]="星期四";
Day[5]="星期五";
Day[6]="星期六";
var timeValue = "";
timeValue += year + "年";
timeValue += ((month < 10) ? "0" : "") + month + "月";
timeValue += date + "日 ";
timeValue += (Day[day]) + " ";
timeValue += ((hours <= 12) ? hours : hours - 12);
timeValue += ((minutes < 10) ? ":0" : ":") + minutes;
timeValue += ((seconds < 10) ? ":0" : ":") + seconds;
document.all.clock.innerText = timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true
}
function startclock () {
stopclock();
showtime()
}
//-->
</script>
</head>
<body onLoad="startclock()">
<form id="form1" runat="server">
<div>
<table style="width: 987px; height: 539px">
<tr>
<td background="images/logo.jpg" colspan="3" style="height: 178px">
</td>
</tr>
<tr>
<td valign="bottom" id="clock" style="height: 11px; width: 184px;" background="images/10.jpg"></td>
<td valign="bottom" style="height: 11px" background="images/10.jpg">
<p align="right">欢迎使用网上考试系统 </td>
</tr>
<tr>
<td colspan="3" rowspan="9" style="text-align: center">
<span
style="color: #ff0033">
<br />
<br />
<br />
注意事项:以下带*号的必须填写
<asp:Label id="EqualLoginName" runat="server" Width="394px" Text="此用户名已经存在!" ForeColor="Red"
Visible="False"></asp:label>
<table style="width: 518px; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid;">
<tr>
<td style="width: 102px; height: 44px;">
<span style="color: #000000; border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none;">
学 号:</span></td>
<td colspan="2" style="width: 538px; text-align: left; border-top-style: solid; border-right-style: solid; border-left-style: solid; height: 44px; border-bottom-style: solid;">
<asp:TextBox ID="tbID" runat="server"></asp:TextBox>
<asp:Label ID="Label1" runat="server" ForeColor="Red" Text="*" Width="1px"></asp:Label>
<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="tbID"
ErrorMessage="请输入正确的8位学号!" ValidationExpression="\d{8}"></asp:RegularExpressionValidator><asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="请输入学号:" ControlToValidate="tbID" Display="Dynamic"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td style="width: 102px; height: 25px;">
<span style="color: #000000">用户名:</span></td>
<td colspan="2" style="width: 538px; text-align: left; border-top-style: solid; border-right-style: solid; border-left-style: solid; height: 25px; border-bottom-style: solid;">
<asp:TextBox ID="tbUsername" runat="server"></asp:TextBox>
<asp:Label ID="Label9" runat="server" ForeColor="Red" Text="*"></asp:Label>
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="请输入用户名!" ControlToValidate="tbUsername" Display="Dynamic"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td style="width: 102px; height: 25px;">
<span style="color: #000000">密 码:</span></td>
<td colspan="2" style="width: 538px; height: 25px; text-align: left; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid;">
<asp:TextBox ID="tbPassword" runat="server" TextMode="Password" Width="127px"></asp:TextBox>
<asp:Label ID="Label10" runat="server" ForeColor="Red" Text="*"></asp:Label>
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="请输入密码!" ControlToValidate="tbPassword" Display="Dynamic"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ErrorMessage="密码长度必须大于6位!" ControlToValidate="tbPassword" Display="Dynamic" ValidationExpression=".{7,}"></asp:RegularExpressionValidator></td>
</tr>
<tr>
<td style="width: 102px">
<span style="color: #000000">
确认密码:</span></td>
<td colspan="2" style="width: 538px; text-align: left; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid;">
<asp:TextBox ID="tbPasswordOK" runat="server" TextMode="Password" Width="126px"></asp:TextBox>
<asp:Label ID="Label11" runat="server" ForeColor="Red" Text="*"></asp:Label>
<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="确认密码不能为空!" ControlToValidate="tbPasswordOK" Display="Dynamic"></asp:RequiredFieldValidator></td>
</tr>
<tr>
<td style="width: 102px">
</td>
<td colspan="2" style="width: 538px; text-align: left; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid;">
<asp:Label ID="Label8" runat="server" Text="(密码区分大小写,密码长度必须大于6)"></asp:Label></td>
</tr>
<tr>
<td style="width: 102px">
<span style="color: #000000">
邮 箱:</span></td>
<td colspan="2" style="width: 538px; text-align: left; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid;">
<asp:TextBox ID="tbMail" runat="server"></asp:TextBox>
<asp:Label ID="Label12" runat="server" ForeColor="Red" Text="*"></asp:Label>
<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server"
ErrorMessage="请输入邮箱地址!" ControlToValidate="tbMail" Display="Dynamic"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ErrorMessage="Email格式不正确!" ControlToValidate="tbMail" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator></td>
</tr>
<tr>
<td style="width: 102px">
</td>
<td colspan="2" style="width: 538px; text-align: left">
<asp:Label ID="Label6" runat="server" Text="(例如:wsks@126.com)"></asp:Label></td>
</tr>
<tr>
<td colspan="3" style="height: 29px; text-align: left; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-bottom-style: solid;">
<asp:ImageButton
ID="imbtnRegister" runat="server" ImageUrl="~/images/btn_zc.jpg" OnClick="imbtnRegister_Click" />
<asp:ImageButton ID="imbtnReinstall" runat="server" ImageUrl="~/images/btn_reinstall_1.gif" CausesValidation="False" OnClick="imbtnReinstall_Click" />
<asp:ImageButton ID="imbtnBack"
runat="server" ImageUrl="~/images/btn_back_1.gif" CausesValidation="False" OnClick="imbtnBack_Click" /></td>
</tr>
</table>
</span>
</td>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
<td colspan="3" style="height: 39px; text-align: center; border-top-style: solid;">
Copyright © 2008-2008<br />
网上考试系统 yingdan0303@126.com</td>
</tr>
</table>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?