Click here to Skip to main content
15,892,927 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.
<%@ Master Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">
</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>CISL Document Authentication System</title>
	<link type="text/css" href="~/StyleSheet.css" rel="stylesheet" />
</head>
<body style="background-color:#dfe4ff;">

	<form id="form1" runat="server">
        &nbsp;<table>
            <tr>
                <td colspan="4">
	<asp:LoginView ID="LoginStatus1" runat="server">
		<AnonymousTemplate>
            <asp:HyperLink ID="HyperLink1" NavigateUrl="~/Login.aspx" runat="server">Login</asp:HyperLink><hr /><h3>
                Admininstrator Login:<span style="color: #ff0066">admin</span><br />password:<span style="color: #ff0066">admin</span></h3>
		</AnonymousTemplate>
		<LoggedInTemplate>
			<asp:LoginName ID="LoginName1" runat="server" FormatString="Welcome, {0}" />&nbsp;&nbsp;
            <asp:HyperLink ID="HyperLink1" NavigateUrl="~/Logout.aspx" runat="server">Logout</asp:HyperLink>
		</LoggedInTemplate>
	</asp:LoginView>
                    &nbsp; &nbsp;&nbsp; &nbsp; &nbsp;
                </td>
            </tr>
            <tr>
                <td colspan="4">

	<hr />
                    &nbsp;</td>
            </tr>
            <tr>
                <td rowspan="2" valign="top">
                    &nbsp;<table class="gnav">
                        <tr>
                            <td>
                                <em><span style="text-decoration: underline">Users</span></em></td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Admin/Users/Default.aspx"><span style="text-decoration: underline"><span
                                style="color: #0000ff">Add/Edit Users and&nbsp;<br />
                            </span><span style="color: #0000ff">Assign Roles to them</span></span></asp:HyperLink>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <span style="text-decoration: underline"><em>Roles And Activities</em></span></td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/Admin/Roles/Default.aspx"><span style="color: #0000ff; text-decoration: underline">
                                Edit Roles and Activities</span></asp:HyperLink>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                    </table>
	
    <br />
    <asp:Literal runat="server" ID="SecurityDisclosure"></asp:Literal></td>
                <td>
                </td>
                <td colspan="2" rowspan="2">
	
	
        <asp:contentplaceholder id="c" runat="server">
        
        </asp:contentplaceholder>
                </td>
            </tr>
            <tr>
                <td>
                </td>
            </tr>
        </table>
	<br />
	<br />
        &nbsp;
    </form>
</body>
</html>

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