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

PixelDragonsMVC.NET - An open source MVC framework

Rate me:
Please Sign up or sign in to vote.
4.58/5 (8 votes)
29 Jun 200710 min read 84.5K   73  
An MVC framework with built-in NHibernate support that makes creating ASP.NET 2 applications easier by minimizing code and configuration
<%@ Page Language="C#" MasterPageFile="~/UI/masterPages/public.master"%>

<asp:content id="content" contentplaceholderid="mainContent" runat="server">
    
    <% 
        string errorMessage = null;
        if (Context.Items["model"] != null) {
            errorMessage = Context.Items["model"].ToString();
        }
    %>
    
    <h1>Welcome</h1>
    <p>You can <a href="users-add.ashx">create a new user account</a> or login to an existing one.</p>
    
    <%if (!String.IsNullOrEmpty(errorMessage)) {%>
    <div class="errorMessage"><img src="UI/images/icons/error.gif" align="absmiddle" /> <%=errorMessage%></div>
    <%}%>
    
    <form action="users-login.ashx" method="post">
        <div class="field">
            <div class="label"><label>User Id:</label></div>
            <div class="control"><input type="text" name="userId" /></div>
        </div>
        <div class="field">
            <div class="label"><label>Password:</label></div>
            <div class="control"><input type="password" name="password" /></div>
        </div>
        <div class="field">
            <div class="label"></div>
            <div class="control"><input type="image" src="UI/images/buttons/login.gif" /></div>
        </div>
    </form>
    
</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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


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

Comments and Discussions