温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:智能选课系统源码及论坛
当前文件路径:XuanKeLunWen/student/StudentReg.aspx

1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="StudentReg.aspx.cs" Inherits="studnet_StudentReg" %> 2
3
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 4
5
<html xmlns="http://www.w3.org/1999/xhtml" > 6
<head runat="server"> 7
<title>无标题页</title> 8
</head> 9
<body style="background-image: url(../image/BKGRD9.jpg); background-repeat: repeat"> 10
<form id="form1" runat="server"> 11
<div > 12
<table border="0" cellpadding="0" cellspacing="0" style="border-right: #66ccff 0.1mm solid; border-top: #66ccff 0.1mm solid; margin-top: 20px; margin-left: 300px; border-left: #66ccff 0.1mm solid; margin-right: 200px; border-bottom: #66ccff 0.1mm solid; width: 383px;"> 13
<tr> 14
<td colspan="3" style="height: 18px; border-bottom: #66ccff 0.1mm solid;" align="center"> 15
学生注册页面</td> 16
</tr> 17
<tr> 18
<td style="width: 88px; height: 26px;" align="center"> 19
姓名:</td> 20
<td style="width: 153px; height: 26px;"> 21
<asp:TextBox ID="TextBox1" runat="server" Width="139px"></asp:TextBox></td> 22
<td style="width: 81px; height: 26px;"> 23
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1" 24
Display="Dynamic" ErrorMessage="姓名空"></asp:RequiredFieldValidator></td> 25
</tr> 26
<tr> 27
<td style="width: 88px; height: 19px;" align="center"> 28
密码:</td> 29
<td style="width: 153px; height: 19px;"> 30
<asp:TextBox ID="TextBox2" runat="server" TextMode="Password"></asp:TextBox></td> 31
<td style="width: 81px; height: 19px;"> 32
<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBox2" 33
Display="Dynamic" ErrorMessage="密码空"></asp:RequiredFieldValidator></td> 34
</tr> 35
<tr> 36
<td style="width: 88px" align="center"> 37
确认:</td> 38
<td style="width: 153px"> 39
<asp:TextBox ID="TextBox3" runat="server" TextMode="Password"></asp:TextBox></td> 40
<td style="width: 81px"> 41
<asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="TextBox2" 42
ControlToValidate="TextBox3" Display="Dynamic" ErrorMessage="密码不一致"></asp:CompareValidator></td> 43
</tr> 44
<tr> 45
<td style="width: 88px; height: 19px;" align="center"> 46
专业:</td> 47
<td style="width: 153px; height: 19px;"> 48
<asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="AccessDataSource1" 49
Width="147px" DataTextField="zhuanyename" DataValueField="zhuanyename"> 50
</asp:DropDownList> 51
</td> 52
<td style="width: 81px; height: 19px;"> 53
</td> 54
</tr> 55
<tr> 56
<td style="height: 19px;" align="center" colspan="3"> 57
<asp:LinkButton ID="LinkButton1" runat="server" BackColor="DeepSkyBlue" ForeColor="Black" 58
Width="63px" OnClick="LinkButton1_Click">注册</asp:LinkButton> <asp:AccessDataSource 59
ID="AccessDataSource1" runat="server" DataFile="~/database/xuanke.mdb" SelectCommand="SELECT * FROM [zhuanye]"> 60
</asp:AccessDataSource> 61
</td> 62
</tr> 63
</table> 64
65
</div> 66
</form> 67
</body> 68
</html> 69



