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

Eucalypto - ASP.NET CMS Library using NHibernate

Rate me:
Please Sign up or sign in to vote.
4.84/5 (36 votes)
10 Jun 2009MIT24 min read 321.3K   4.6K   260  
An ASP.NET server library for creating CMS website (forums, articles/wiki, news, users/roles, ...), using NHibernate for data access.
<%@ Page Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="UserDetails.aspx.cs" Inherits="UserDetails" Title="User Details" %>

<asp:Content ID="Content1" ContentPlaceHolderID="contentPlaceHolder" runat="Server">
    <h1>
        Login details</h1>
    <div>
        <table>
            <tr>
                <td>
                    <label for="txtName">Name:</label>
                </td>
                <td>
                    <asp:TextBox ID="txtName" runat="server" MaxLength="20"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="validatorName" runat="server" ControlToValidate="txtName"
                        Display="Static" ErrorMessage="Name field is required"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    <label for="txtEMail">E-Mail:</label>
                </td>
                <td>
                    <asp:TextBox ID="txtEMail" runat="server" MaxLength="100"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    <label for="txtPassword">Choose a password:</label>
                </td>
                <td>
                    <asp:TextBox ID="txtPassword" runat="server" MaxLength="100" TextMode="Password"></asp:TextBox>
                    <asp:Label ID="lblHelpPassword" runat="server" Text=""><small>Leave these fields empty to don't change the password</small></asp:Label>
                    <asp:CompareValidator ID="validatorPassword" runat="server" ControlToCompare="txtPassword2"
                        ControlToValidate="txtPassword" Display="Static" ErrorMessage="Password not valid"></asp:CompareValidator>
                </td>
            </tr>
            <tr>
                <td>
                    <label for="txtPassword2">Re-enter password:</label>
                </td>
                <td>
                    <asp:TextBox ID="txtPassword2" runat="server" MaxLength="100" TextMode="Password"></asp:TextBox>
                    <asp:CompareValidator ID="validatorPassword2" runat="server" ControlToCompare="txtPassword"
                        ControlToValidate="txtPassword2" Display="Static" ErrorMessage="Password not valid"></asp:CompareValidator>
                </td>
            </tr>
        </table>

        <h2>Roles</h2>        
        <asp:CheckBoxList ID="chkListRoles" runat="server">
        </asp:CheckBoxList>
        
        <h2>Status</h2>
        <asp:CheckBox ID="chkApproved" runat="server" Text="Approved" />
        <asp:CheckBox ID="chkLocked" runat="server" Text="Locked" />
        
        <p>
            <asp:Button ID="btSave" runat="server" Text="Save" OnClick="btSave_Click" />
            <asp:Button ID="btCancel" runat="server" Text="Cancel" OnClick="btCancel_Click" CausesValidation="false" />
        </p>
    </div>
</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 MIT License


Written By
Software Developer
Italy Italy
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions