Click here to Skip to main content
15,888,610 members
Articles / Web Development / IIS

Custom Membership, Role Providers, Website administration tool, and Role based access to individual files

Rate me:
Please Sign up or sign in to vote.
4.00/5 (11 votes)
12 Jul 2011CPOL5 min read 157.5K   11.4K   93  
Custom Membership and Role Providers, a website administration tool, and Role based access to individual files.
<%@ Page Language="C#" MasterPageFile="~/cisl2.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Admin_Roles_Default" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="c" Runat="Server">
    <table>
        <tr>
            <td rowspan="2">
                &nbsp;</td>
            <td rowspan="2">
                &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
                <table class="webparts">
                <tr>
	            <th colspan="2">
                    Assign Activities to Roles:</th>
                </tr>
                    <tr>
                        <td class="details"><h3>Role:</h3><br />
                            <asp:DropDownList ID="rolesList" runat="server" AutoPostBack="True" OnSelectedIndexChanged="rolesList_SelectedIndexChanged">
                            </asp:DropDownList>&nbsp;
                            <asp:Button ID="btnNew" runat="server" Text="New" Width="70px" OnClick="btnNew_Click" />
                        </td>
                        <td class="details">
                        </td>
                    </tr>
                    <tr>
                        <td class="details">
<div>
                                <table>
                                    <tr>
                                        <td>
                                            <strong><span style="font-size: 14pt">Denied Activities</span></strong></td>
                                        <td>
                                        </td>
                                        <td>
                                            <span style="font-size: 14pt"><strong>Allowed Activities</strong></span></td>
                                    </tr>
                                    <tr>
                                        <td rowspan="2" style="border:double 2px #3300ff">
                                            <asp:CheckBoxList ID="CheckBoxList2" runat="server">
                                            </asp:CheckBoxList></td>
                                        <td>
                                            <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text=">>" Width="60px" /></td>
                                        <td rowspan="2" style="border:double 2px #3300ff">
                                            <asp:CheckBoxList ID="CheckBoxList1" runat="server">
                                            </asp:CheckBoxList></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="<<" Width="60px" /></td>
                                    </tr>
                                </table>
                            </div>
                        </td>
                        <td class="details">
                <table class="gnav" style="text-align:center;">
                    <tr>
                        <td>
                            <asp:Button ID="btnSave" runat="server" Text="Save" Width="70px" OnClick="btnSave_Click" /></td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Button ID="btnDelete" runat="server" Text="Delete" Width="70px" OnClick="btnDelete_Click" /></td>
                    </tr>
                    <tr>
                        <td><asp:Button Text="Cancel" ID="btnCancel" runat="server" Width="70px" OnClick="btnCancel_Click" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Button ID="btnExit" runat="server" Text="Exit" Width="70px" OnClick="btnExit_Click" /></td>
                    </tr>
                </table>
                        </td>
                    </tr>
                    <tr>
                        <td class="details">
                <table>
                    <tr>
                        <td colspan="4" style="font-size: small; width: 300px">
                            Current Role:<asp:Label ID="lblCurrent" runat="server"></asp:Label>&nbsp; of &nbsp;Total
                            Roles: &nbsp;<asp:Label ID="lblTotal" runat="server"></asp:Label></td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Button ID="btnFirst" runat="server" CommandName="First" OnCommand="NavigationLink_Click"
                                Text="<<" Width="40px" /></td>
                        <td>
                            <asp:Button ID="btnPrevious" runat="server" CommandName="Prev" OnCommand="NavigationLink_Click"
                                Text="<" Width="40px" /></td>
                        <td>
                            <asp:Button ID="btnNext" runat="server" CommandName="Next" OnCommand="NavigationLink_Click"
                                Text=">" Width="40px" /></td>
                        <td>
                            <asp:Button ID="btnLast" runat="server" CommandName="Last" OnCommand="NavigationLink_Click"
                                Text=">>" Width="40px" /></td>
                    </tr>
                </table>
                        </td>
                        <td class="details">
                        </td>
                    </tr>
                </table>
                <div id="ConfirmationMessage" runat="server" class="alert">
                </div>
                </td>
        </tr>
    </table>
</asp:Content>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
Singapore Singapore
I love programming, reading, and meditation. I like to explore management and productivity.

Comments and Discussions