adduserstorole.aspx

来自「《圣殿祭司的ASP.NET 2.0开发详解——使用C#》光盘内容.包含了书籍所含」· ASPX 代码 · 共 45 行

ASPX
45
字号
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AddUsersToRole.aspx.cs" Inherits="AddUsersToRole" %>

<!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>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table style="height: 169px" border="1" bordercolor="#000000" cellpadding="0" cellspacing="0">
            <tr>
                <td style="width: 100px; height: 165px;" align="center" bgcolor="#ffcc99">
                    用户</td>
                <td style="width: 100px; height: 165px;" bgcolor="#ffffcc" valign="top">
                    <asp:CheckBoxList ID="cbxlUsers" runat="server" Font-Size="10pt">
                    </asp:CheckBoxList></td>
                <td style="width: 100px; height: 165px;" align="center" bgcolor="#ffcc99">
                    角色</td>
                <td style="width: 100px; height: 165px;" bgcolor="#ffffcc" valign="top">
                    <asp:RadioButtonList ID="rdoRoles" runat="server" Font-Size="10pt">
                    </asp:RadioButtonList></td>
                <td style="width: 100px; height: 165px;" align="center" bgcolor="#ccffcc">
                    <asp:Button ID="btnAddUsersRole" runat="server" Text="将用户加入角色(多对一)" OnClick="btnAddUsersRole_Click" /></td>
            </tr>
        </table>
    
    </div>
        <br />
        <asp:Label ID="txtUsersRoles" runat="server" Font-Size="10pt" ForeColor="Blue" Text="用户角色群组资料:"></asp:Label><br />
        <asp:GridView ID="gviewUsersRoles" runat="server" BackColor="White" BorderColor="#999999"
            BorderStyle="None" BorderWidth="1px" CellPadding="3" GridLines="Vertical" Font-Size="10pt">
            <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
            <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
            <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
            <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="Gainsboro" />
        </asp:GridView>
        <asp:Label ID="txtMsg" runat="server"></asp:Label>
    </form>
</body>
</html>

⌨️ 快捷键说明

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