Language

Here are some ASP.NET MVC samples recommended by the ASP.NET team. You can find more samples on the MSDN Samples Gallery.

ASP.NET MVC 5

ASP.NET Identity: Password Policy Sample

ASP.NET Identity: Password Policy Sample

This is a sample project that outlines creating custom password policy using ASP.NET Identity. Complete explanation is available at http://blogs.msdn.com/b/webdev/archive/2014/01/06/implementing-custom-password-policy-using-asp-net-identity.aspx.

Enums in MVC

Enums in MVC

This ASP.NET MVC 5 sample illustrates how to use the extended HtmlHelper (the class behind @Html) support for enum datatypes and the new EnumHelper class (a few static helpers for creating select lists for enum datatypes).

Basic Authentication

Basic Authentication Filter

This sample demonstrates a custom authentication filter with MVC 5. It uses the HTTP Basic Access Authentication scheme defined by RFC 2617 combined with the ASP.NET Identity system for storing user names, passwords, roles and claims.

Attribute Routing

Attribute Routing

This sample demonstrates the use of attribute routing in ASP.NET MVC.

nopCommerce

nopCommerce

nopCommerce is a open source e-commerce solution that is ASP.NET 4 based with a MS SQL 2005 (or higher) backend database. nopCommerce is developed to take full advantage of the newest technologies available.

Contoso University - Entity Framework and ASP.NET MVC

Contoso University - Entity Framework 6 and ASP.NET MVC 5

The Contoso University sample web application demonstrates how to create ASP.NET MVC 5 applications using the Entity Framework 6. The sample application is a website for a fictional Contoso University. It includes functionality such as student admission, course creation, and instructor assignments.

ASP.NET MVC 4

ASP.NET MVC 4 Mobile Features

ASP.NET MVC 4 Mobile Features

This tutorial will teach you the basics of how to work with mobile features in an ASP.NET MVC 4 developer preview Web application.

ASP.NET MVC 3

Getting Started With MVC 3

Getting Started With MVC 3

This tutorial will teach you the basics of building an ASP.NET MVC 3 Web application using Microsoft Visual Web Developer 2010 Express Service Pack 1, which is a free version of Microsoft Visual Studio.

MVC Music Store

MVC 3 Music Store

MVC Music Store is a tutorial application built on ASP.NET MVC 3. It's a lightweight sample store which sells albums online, demonstrating ASP.NET MVC 3's productivity features and data access via Entity Framework 4. See what you can do with MVC 3 in under 1000 lines of c# code!

NerdDinner

NerdDinner

The Open Source ASP.NET MVC 3 Project that helps nerds and computer people plan get-togethers. You can see the site running LIVE at http://www.nerddinner.com. This project's goal is to create the best website for Technology People to host their Lunches, Flashmobs, Dinners and informal get-togethers.

Project Silk

Project Silk

Project Silk provides guidance for building cross-browser web applications with a focus on client-side interactivity. These applications take advantage of the latest web standards like HTML5, CSS3 and ECMAScript 5 along with modern web technologies such as jQuery, Internet Explorer 9, and ASP.NET MVC 3.

Filtering in MVC 3

Filtering in MVC 3

The sample code shows you how to create custom filters in MVC 3. The request timing filter can be used to profile your action methods. The trace filter is useful for monitoring your application.

Creating a MVC 3 Application with Razor and Unobtrusive JavaScript

Creating a MVC 3 Application with Razor and Unobtrusive JavaScript

The sample is a simple MVC 3 web site user list. Users can enter, view, and update user information. This sample doesn't use a database.

FunnelWeb

FunnelWeb

FunnelWeb is an open source blog engine, built by developers for developers.

Raccoon Blog

Raccoon Blog

A blog application running on MVC 3 and with a RavenDB backend.

ASP.NET MVC 2

Using TDD with ASP.NET MVC

Using TDD with ASP.NET MVC 2

This walkthrough shows you how to develop an ASP.NET MVC 2 application in Visual Studio using the test-driven development (TDD) approach.

Truck Tracker

Truck Tracker

An ASP.NET MVC 2 Geolocation App using MySQL, NHibernate, Ninject & Google Maps

ASP.NET MVC

Create a Movie Database Application in 15 Minutes with ASP.NET MVC

Create a Movie Database Application in 15 Minutes with ASP.NET MVC

Stephen Walther builds an entire database-driven ASP.NET MVC application from start to finish. This tutorial is a great introduction for people who are new to the ASP.NET MVC Framework and who want to get a sense of the process of building an ASP.NET MVC application.