Click here to Skip to main content
15,881,559 members
Articles / Web Development / ASP.NET

Custom Fluent Nhibernate Membership and Role Provider

Rate me:
Please Sign up or sign in to vote.
4.91/5 (20 votes)
12 Aug 2012CPOL6 min read 131.5K   7.3K   92  
Custom implementation of Microsoft Membership and Role provider using Fluent Nhibernate
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EditUser.aspx.cs" Inherits="FNHCustomProviders.SampleApp.EditUser" %>
<%@ Register TagPrefix ="uc1" TagName ="UserInfo"  src="~/StatusControl.ascx" %>
<%@ Register TagPrefix ="uc1" TagName ="Copyright"  src="~/Copyrights.ascx" %>
<!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>Update Email</title>
     <link href="/App_Themes/Blue/Simple.css" type = "text/css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
    <div align ="right"  >
        <uc1:UserInfo id="UserInfo1" runat ="server"></uc1:UserInfo>
    </div>
    
    <div  id = "Alluser" align ="center" >
    <table>
    <tr><td align ="right" ><asp:Label class="styleL" ID="lblUsernmtxt" runat="server"  Text="User Name :" ></asp:Label></td>
        <td><asp:TextBox ID="txtUsernm" runat="server" ReadOnly="True" Enabled="False" Width = "250px" ></asp:TextBox></td>
    </tr>
    <tr><td align ="right"><asp:Label class="styleL" ID="lblEmail" runat="server"  Text="Email :"></asp:Label></td>
        <td><asp:TextBox Width = "250px" ID="txtEmail" runat="server"></asp:TextBox></td>

        <tr><td align ="right"></td>
        <td align ="right"><asp:Button ID="update" runat="server" Text="update" onclick="update_Click" /></td>
    </tr>
    <tr><td colspan =2><asp:Label class="styleER" ID="lblmsg" runat="server"  Text="" ></asp:Label></td></tr>
    
    </table>
   
    
      
    <uc1:Copyright id="copyright1" runat ="server"></uc1:Copyright>
    </div>
    </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
United States United States
Lead Enterprise Application development and architecture using Asp.net/C#/Ajax/SSIS with back end databases like Ms-SQL, Oracle.

You can contact me at suhel.shah@gmail.com

Comments and Discussions