Click here to Skip to main content
15,893,486 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.7K   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_Users_Default" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="c" Runat="Server">
    <table>
        <tr>
            <td rowspan="1">
                &nbsp;</td>
            <td rowspan="1">
                &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
                <table class="webparts">
                <tr>
	            <th>User's Information</th>
                    <th>
                    </th>
                </tr>
                    <tr>
                        <td class="details" style="height: 77px">
                        <h3>Roles:</h3>
                        <asp:CheckBoxList ID="UserRoles" runat="server" /></td>
                        <td class="details" rowspan="3">
                            &nbsp; &nbsp;&nbsp;<table class="gnav" style="text-align:center;">
                    <tr>
                        <td>
                            <asp:Button ID="btnNew" runat="server" Text="New" Width="70px" OnClick="btnNew_Click" /></td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Button ID="btnEdit" runat="server" Text="Delete" Width="70px" OnClick="btnEdit_Click" /></td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Button ID="btnSave" runat="server" Text="Save" Width="70px" OnClick="btnSave_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>
                &nbsp;&nbsp; 
                        </td>
                    </tr>
                    <tr>
                        <td class="details" style="height: 96px">
                            &nbsp;<h3>
                                Main Info:</h3>
                            <asp:DropDownList ID="userList" runat="server" AutoPostBack="True" OnSelectedIndexChanged="userList_SelectedIndexChanged">
                            </asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td class="details">
                   <table>
                <tr>
	                    <td class="detailheader">User Name</td>
	                    <td>
		                <asp:Label ID="username" runat="server"></asp:Label>
	                    </td>
                </tr>
                <tr>
	                    <td class="detailheader">Password</td>
	                    <td>
		                <asp:Button
                            ID="btnChangePassword" runat="server" Text="Change Password" />
	                    </td>
                </tr>
                    </table>
                        </td>
                    </tr>
                    <tr>
                        <td class="details">
            <table>
            <tr>
            <td colspan="4" style="width:300px; font-size:small;">
            Current User:<asp:Label ID="lblCurrent" runat="server"></asp:Label>&nbsp; of &nbsp;Total Users: &nbsp;<asp:Label ID="lblTotal" runat="server"></asp:Label></td>
            </tr>
            <tr>
            <td>
                <asp:Button ID="btnFirst" runat="server" Text="<<" CommandName="First" OnCommand="NavigationLink_Click" Width="40px" /></td>
                <td>
                    <asp:Button ID="btnPrevious" runat="server" Text="<" CommandName="Prev" OnCommand="NavigationLink_Click" Width="40px" /></td>
                <td>
                    <asp:Button ID="btnNext" runat="server" Text=">" CommandName="Next" OnCommand="NavigationLink_Click" Width="40px" /></td>
                <td>
                    <asp:Button ID="btnLast" runat="server" Text=">>" CommandName="Last" OnCommand="NavigationLink_Click" Width="40px" /></td>
            </tr>
            </table>
                        </td>
                        <td class="details"></td>
                    </tr>
                </table>
            </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