Click here to Skip to main content
15,897,891 members
Articles / Web Development / IIS

Introducing the Rabbit Framework and its Dynamic Idea

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
23 Mar 2011CPOL9 min read 24.5K   163   14  
Rabbit Framework is a new lightweight framework for building web sites using ASP.NET Web Pages / WebMatrix. This article describes one interesting idea out of many found in the framework.
@{
    // Set the layout page and page title
    Layout = "~/_SiteLayout.cshtml";
    Page.Title = "Thanks for registering";
}

@if (!WebSecurity.IsAuthenticated) {
    <h2>But you&#8217;re not done yet!</h2>
    <p>
       An email with instructions on how to activate your account is on its way 
       to you.
    </p>
} else {
    <h2>You are all set.</h2>
    <p>
        It looks like you&#8217;ve already confirmed your account and are 
        good to go.
    </p>
}

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
Architect
Canada Canada
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions