⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 useradd.aspx

📁 基于C#语言的一个企业客户管理数据库系统开发案例的源代码 ,很实用
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserAdd.aspx.cs" Inherits="UserAdd" %>

<%@ Register Src="../UserControl/Footer.ascx" TagName="Footer" TagPrefix="uc2" %>

<%@ Register Src="~/UserControl/Header.ascx" TagName="Header" TagPrefix="uc1" %>

<!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 class="Font">
    <form id="form1" runat="server">
   
    <div style="text-align: center" class="font">
        <uc1:Header ID="Header1" runat="server" />
        <table border="0" cellpadding="0" cellspacing="0" >
            <tr>
                <td background="../Image/企业客户管理系统页面任务分配.jpg" colspan="3" rowspan="3" width="747" style="vertical-align: top; height: 453px; text-align: center">
                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                        <tr>
                            <td style="width: 63px; height: 52px">
                            </td>
                            <td style="width: 606px; height: 52px">
                            </td>
                            <td style="height: 52px">
                            </td>
                        </tr>
                        <tr>
                            <td style="height: 147px; width: 63px;">
                            </td>
                            <td style="height: 147px; width: 606px;">
        <asp:Panel ID="Panel1" runat="server" Height="50px" Width="125px">
        <table bordercolor="navy" cellpadding="0" cellspacing="0" style="width: 401px; font-size: 12px; text-align: left;" class="Font">
            <tr>
                <td style="width: 107px; text-align: left; height: 24px;">
                    用户名</td>
                <td style="width: 361px; text-align: left; height: 24px;">
                    <asp:TextBox ID="txtUserName" runat="server" Width="141px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtUserName"
                        ErrorMessage="*"></asp:RequiredFieldValidator>
                    <asp:LinkButton ID="lnkbtnUserName" runat="server" OnClick="lnkbtnUserName_Click" CausesValidation="False">检查用户名</asp:LinkButton></td>
            </tr>
            <tr style="color: #000000">
                <td style="width: 107px; text-align: left;">
                    
                    密码</td>
                <td style="width: 361px; text-align: left;">
                   <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" Width="141px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPassword"
                        ErrorMessage="*"></asp:RequiredFieldValidator></td>
            </tr>
            <tr style="color: #000000">
                <td style="width: 107px; text-align: left;">
                    再输入一次</td>
                <td style="width: 361px; text-align: left;"><asp:TextBox ID="txtPasswordAgain" runat="server" TextMode="Password" Width="141px"></asp:TextBox>
                    <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtPassword"
                        ControlToValidate="txtPasswordAgain" ErrorMessage="密码不一致"></asp:CompareValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtPasswordAgain"
                        ErrorMessage="*"></asp:RequiredFieldValidator></td>
                
            </tr>
            <tr style="color: #000000">
                <td style="width: 107px; text-align: left;">
                    性别</td>
                <td style="width: 361px; text-align: left;">
                    &nbsp;<asp:RadioButton ID="radButtonMan" runat="server" Checked="True" Text="男" GroupName="1" />
                    <asp:RadioButton ID="radButtonWoman" runat="server" Text="女" GroupName="1" /></td>
            </tr>
            <tr>
                <td style="width: 107px; text-align: left;">
                    联系电话</td>
                <td style="width: 361px; text-align: left;">
                    <asp:TextBox ID="txtPhone" runat="server" Width="141px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="*" ControlToValidate="txtPhone"></asp:RequiredFieldValidator></td>
            </tr>
            <tr>
            <td style="width: 107px; text-align: left">
                角色</td>
            <td style="width: 361px; text-align: left;">
                <asp:DropDownList ID="ddlRole" runat="server" >
                </asp:DropDownList></td>
            </tr>
            <tr>
               
                <td  colspan="2" align="center" style="text-align: center">
                    <asp:Button ID="btnClickOk" runat="server" Text="添加" OnClick="btnClickOk_Click" CssClass=".leap" />
                    <input id="btnReset" type="reset" value="重置" />
        <asp:LinkButton ID="lnkbtnBianji" runat="server" OnClick="lnkbtnBianji_Click" CausesValidation="False">是否编辑用户</asp:LinkButton></td>
            </tr>
        </table>
        </asp:Panel>
                                &nbsp;&nbsp;<asp:Panel ID="Panel2" runat="server" Height="50px" Width="487px">
                                    &nbsp;<asp:GridView ID="gvUsersInfo" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                                        CellPadding="4" ForeColor="#333333" GridLines="None" Height="1px" OnPageIndexChanging="gvUsersInfo_PageIndexChanging"
                                        OnRowDataBound="gvUsersInfo_RowDataBound" OnRowDeleting="gvUsersInfo_RowDeleting"
                                        PageSize="5" Width="466px">
                                        <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                                        <Columns>
                                            <asp:BoundField DataField="ID" HeaderText="用户ID" />
                                            <asp:BoundField DataField="UserName" HeaderText="用户名" />
                                            <asp:BoundField DataField="Sex" HeaderText="性别" />
                                            <asp:BoundField DataField="Telephone" HeaderText="联系电话" />
                                            <asp:BoundField DataField="Type" HeaderText="角色" />
                                            <asp:CommandField HeaderText="删除" ShowDeleteButton="True" />
                                        </Columns>
                                        <RowStyle BackColor="#E3EAEB" />
                                        <EditRowStyle BackColor="#7C6F57" />
                                        <SelectedRowStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
                                        <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" />
                                        <HeaderStyle BackColor="#7296BE" Font-Bold="True" ForeColor="White" />
                                        <AlternatingRowStyle BackColor="White" />
                                    </asp:GridView>
                                </asp:Panel>
                            </td>
                            <td style="height: 147px">
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 63px;">
                            </td>
                            <td style="width: 606px; vertical-align: top; text-align: center;">

                            </td>
                            <td>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
          
        </table>
        <br />
        <uc2:Footer ID="Footer1" runat="server" />
        <br />
        &nbsp;</div>
        &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp;
    </form>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -