<%@ Page Language="C#" AutoEventWireup="true" CodeFile="N38_AddNewUser.aspx.cs" Inherits="N38_AddNewUser" %>

<!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>
    <link href="css/Style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        &nbsp;</div>
        <table>
            <tr>
                <td colspan="2"  style="padding-left:80px ; font-size:15px;">
                添加用户
                </td>
                <td style="width: 100px">
                </td>
            </tr>
            <tr>
                <td style="width: 100px" align="right">
                    姓名：</td>
                <td style="width: 598px">
                    <asp:TextBox ID="tbrealname" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvrealname" runat="server" ErrorMessage="请输入读者真实姓名" ControlToValidate="tbrealname" Display="Dynamic"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revrealname" runat="server" ErrorMessage="名字不能超过10个字" ControlToValidate="tbrealname" Display="Dynamic" ValidationExpression="\S{0,10}"></asp:RegularExpressionValidator></td>
                <td style="width: 100px">
                </td>
            </tr>
            <tr>
                <td style="width: 100px" align="right">
                    用户名：</td>
                <td style="width: 598px">
                    <asp:TextBox ID="tbname" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="rfvname" runat="server" ErrorMessage="请输入读者用户名" ControlToValidate="tbname" Display="Dynamic"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="revname" runat="server" ErrorMessage="用户名不能超过25个字" ControlToValidate="tbname" Display="Dynamic" ValidationExpression="\S{0,25}"></asp:RegularExpressionValidator></td>
                <td style="width: 100px">
                </td>
            </tr>
            <tr>
                <td style="width: 100px" align="right">
                    类型：</td>
                <td style="width: 598px">
                    <asp:RadioButtonList ID="rbltype" runat="server" RepeatDirection="Horizontal">
                        <asp:ListItem Selected="True">学生</asp:ListItem>
                        <asp:ListItem>教师</asp:ListItem>
                    </asp:RadioButtonList></td>
                <td style="width: 100px">
                </td>
            </tr>
            <tr>
                <td style="width: 100px">
                </td>
                <td style="width: 598px">
                    <asp:ImageButton ID="ibtnok" runat="server" ImageUrl="~/n38_image/tj.gif" OnClick="ibtnok_Click" /></td>
                <td style="width: 100px">
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
