112
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
? ? <title></title>
</head>
<body>
? ? <form id="form1" runat="server">
? ? <div>
? ? <table>
? ? ? ? <tr>
? ? ? ? ? ? <td>班級(jí)</td>
? ? ? ? ? ? <td>
? ? ? ? ? ? ? ? <asp:DropDownList ID="BJ" runat="server" OnSelectedIndexChanged="BJ_SelectedIndexChanged"></asp:DropDownList></td>
? ? ? ? </tr>
? ? ? ? ?<tr>
? ? ? ? ? ? <td>學(xué)號(hào)</td>
? ? ? ? ? ? <td>
? ? ? ? ? ? ? ? <asp:TextBox ID="XH" runat="server" MaxLength="9"></asp:TextBox> <asp:RequiredFieldValidator ID="rfvXH" runat="server" ErrorMessage="請(qǐng)輸入學(xué)號(hào)!" ControlToValidate="XH">*</asp:RequiredFieldValidator></td>
? ? ? ? ? ??
? ? ? ? </tr>
? ? ? ? ?<tr>
? ? ? ? ? ? <td>姓名</td>
? ? ? ? ? ? <td>
? ? ? ? ? ? ? ? <asp:TextBox ID="XM" runat="server" MaxLength="12"></asp:TextBox> <asp:RequiredFieldValidator ID="rfvXM" runat="server" ErrorMessage="請(qǐng)輸入姓名!" ControlToValidate="XM">*</asp:RequiredFieldValidator></td>
? ? ? ? ? ??
? ? ? ? </tr>
? ? ? ? ?<tr>
? ? ? ? ? ? <td>性別</td>
? ? ? ? ? ? <td>
? ? ? ? ? ? ? ? <asp:RadioButtonList ID="XB" runat="server" RepeatDirection="Horizontal">
? ? ? ? ? ? ? ? ? ? <asp:ListItem Selected="True">男</asp:ListItem>
? ? ? ? ? ? ? ? ? ? <asp:ListItem>女</asp:ListItem>
? ? ? ? ? ? ? ? </asp:RadioButtonList></td>
? ? ? ? </tr>
? ? ? ? ?<tr>
? ? ? ? ? ? <td>電話號(hào)碼</td>
? ? ? ? ? ? <td>
? ? ? ? ? ? ? ? <asp:TextBox ID="DH" runat="server" MaxLength="13"></asp:TextBox> <asp:RegularExpressionValidator ID="revDH" runat="server" ErrorMessage="格式為020-87222747" ControlToValidate="DH" ValidationExpression="(\(\d{3}\)|\d{3}-)?\d{8}">#</asp:RegularExpressionValidator></td>
? ? ? ? ? ??
? ? ? ? </tr>
? ? </table>
? ? ? ??
? ? ? ? <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
? ? ? ??
? ? ? ? <asp:Button ID="CR" runat="server" Text="插入" OnClick="CR_Click"? />
? ? ? ?
? ? ? ? ?<asp:Button ID="XG" runat="server" Text="修改" />
? ? ? ??
? ? ? ? <asp:Button ID="SC" runat="server" Text="刪除" />
? ? ? ?
? ? ? ? ?<asp:GridView ID="GVClass" runat="server" BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" CellPadding="3" CellSpacing="2">
? ? ? ? ? ? <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
? ? ? ? ? ? <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
? ? ? ? ? ? <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
? ? ? ? ? ? <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
? ? ? ? ? ? <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
? ? ? ? ? ? <SortedAscendingCellStyle BackColor="#FFF1D4" />
? ? ? ? ? ? <SortedAscendingHeaderStyle BackColor="#B95C30" />
? ? ? ? ? ? <SortedDescendingCellStyle BackColor="#F1E5CE" />
? ? ? ? ? ? <SortedDescendingHeaderStyle BackColor="#93451F" />
? ? ? ? </asp:GridView>
? ? </div>
? ? </form>
</body>
</html>