温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:Asp.net简单网络选课系统源码
当前文件路径:MyElectCourse/adminStudentAdd.aspx

1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="adminStudentAdd.aspx.cs" Inherits="adminStudentAdd" %> 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> 10
<form id="form1" runat="server"> 11
<div> 12
<table id=table1 style="FONT-SIZE: 12px; FONT-FAMILY: Tahoma; BORDER-COLLAPSE: collapse" borderColor="#2c6ed5" 13
cellSpacing="0" cellPadding="2" width="280" align="center" border="1"> 14
15
<tr> 16
<td colspan=2 align=center> 17
<font size=6 face="隶书">添加学生</font><br /> 18
<asp:Label ID="lblMessage" runat="server" ForeColor="Red"></asp:Label> 19
</td> 20
</tr> 21
<tr> 22
<td> 23
学号:</td> 24
<td> 25
<asp:TextBox ID="txtID" runat="server"></asp:TextBox></td> 26
</tr> 27
<tr> 28
<td> 29
姓名:</td> 30
<td> 31
<asp:TextBox ID="txtName" runat="server"></asp:TextBox></td> 32
</tr> 33
<tr> 34
<td> 35
系院:</td> 36
<td> 37
<asp:DropDownList ID="ddlDepart" runat="server" DataSourceID="SqlDataSource1" 38
DataTextField="departName" DataValueField="departID" Width="152px"> 39
</asp:DropDownList><asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 40
SelectCommand="SELECT * FROM [Depart]"></asp:SqlDataSource> 41
</td> 42
</tr> 43
<tr> 44
<td> 45
年级:</td> 46
<td> 47
<asp:DropDownList ID="ddlGrade" runat="server" Width="60px"> 48
<asp:ListItem>2000</asp:ListItem> 49
<asp:ListItem>2001</asp:ListItem> 50
<asp:ListItem>2002</asp:ListItem> 51
<asp:ListItem>2003</asp:ListItem> 52
<asp:ListItem>2004</asp:ListItem> 53
<asp:ListItem>2005</asp:ListItem> 54
<asp:ListItem>2006</asp:ListItem> 55
<asp:ListItem>2007</asp:ListItem> 56
<asp:ListItem>2008</asp:ListItem> 57
<asp:ListItem>2009</asp:ListItem> 58
</asp:DropDownList></td> 59
</tr> 60
<tr> 61
<td> 62
班级:</td> 63
<td> 64
<asp:DropDownList ID="ddlClass" runat="server" Width="60px"> 65
<asp:ListItem>1</asp:ListItem> 66
<asp:ListItem>2</asp:ListItem> 67
<asp:ListItem>3</asp:ListItem> 68
<asp:ListItem>4</asp:ListItem> 69
<asp:ListItem>5</asp:ListItem> 70
<asp:ListItem>6</asp:ListItem> 71
</asp:DropDownList></td> 72
</tr> 73
<tr> 74
<td colspan=2 align=center> 75
<asp:ImageButton ID="imgBtnAdd" runat="server" ImageUrl="~/Images/ADD.GIF" OnClick="imgBtnAdd_Click" /> 76
<asp:ImageButton 77
ID="imgBtnReset" runat="server" ImageUrl="~/Images/RESET.GIF" OnClick="imgBtnReset_Click" /> 78
</td> 79
</tr> 80
</table> 81
</div> 82
</form> 83
</body> 84
</html> 85



