Application Building

We posted a complete Contact Manager sample ASP.NET MVC Application at the www.ASP.net/mvc website. The source code is available in both C# and VB.NET. The application is intentionally simple. The goal was to provide members of the ASP.NET community with an application that they could use to quickly learn how to build new applications with ASP.NET MVC. The Contact Manager application is an address book application. The application enables you to list, create, edit, and delete contacts. I built the application over multiple iterations. With each iteration, I gradually improved the application. The goal of this multiple iteration approach was to enable...

Posted Friday, February 27, 2009 7:51 AM

In this series of tutorials, I build an entire ASP.NET MVC application from start to finish. In this entry, I add a Silverlight file upload control to make it easier to upload multiple media files. This blog entry is part of a series of entries on using ASP.NET MVC to build an entire Family Video Website from scratch. Before reading this entry, you might want to read the previous four entries: Family Video Website #1 – Upload the Videos – In this entry, I create an MVC controller that accepts large file uploads. Family Video Website #2 –Add the Database – In this...

Posted Friday, October 03, 2008 4:10 AM

In this series of blog entries, I build an entire MVC Forums application from start to finish. In this entry, I create the user interface for the Forums application by taking advantage of ASP.NET AJAX client templates. I build the entire user interface for the Forums application with a single view and perform all updates to the view with Ajax calls. A page request is just an excuse for a bad user experience. We are conditioned to expect our web pages to freeze whenever we interact with a website. For example, each and every time we submit a form, we expect...

Posted Monday, September 22, 2008 7:36 AM

(ASP.NET MVC + Silverlight + Flip Video) is a wonderful combination! In this blog entry, I continue building the Family Video Website. I integrate a new Silverlight video player, demonstrate how to upload Flip videos, and add paging. This blog entry is part of a series of entries on using ASP.NET MVC to build an entire Family Video Website from scratch. Before reading this entry, you might want to read the previous three entries: Family Video Website #1 – Upload the Videos – In this entry, I create an MVC controller that accepts large file uploads. Family Video Website #2 –Add the Database...

Posted Thursday, September 18, 2008 7:30 PM

In this series of blog posts, I build an entire ASP.NET MVC Forums application from start to finish. In this post, I explain how to test and implement authentication and authorization for the Forums application. Before you read this blog post, you should read the previous posts in this series: ASP.NET MVC Application Building: Forums #1 – Create the Perfect Application – In this first entry, I explain the overall goals of the ASP.NET MVC Forums application. I emphasize the importance of Software Design Principles and justify my choice to use test-driven development. ASP.NET MVC Application Building: Forums #2 – Create the First...

Posted Friday, September 12, 2008 4:22 PM

I received a lot of feedback on my last blog entry on implementing server-side form validation for the MVC Forums application. Thank you everyone for the feedback! In my previous blog entry, I described how you can perform validation in an MVC application by taking advantage of custom validation attributes. By decorating your model with attributes, such as the RequiredValidator and RegularExpressionValidator attributes, you can enforce validation rules and display custom validation error messages. In order to perform more complex validation, I suggested using a CustomValidator that could be applied to the entity class. The CustomValidator class points to another class...

Posted Tuesday, September 09, 2008 8:17 AM

In this series of blog entries, I build an entire ASP.NET MVC forums application from start to finish. In this blog entry, I add server-side form validation to the forums application. This post has been updated. Please read the updated post here: Forums #4 1/2 - Validation Revisited Before reading this blog entry, you should read the previous three blog entries in this series: ASP.NET MVC Application Building: Forums #1 – Create the Perfect Application – In this first entry, I explain the overall goals of the ASP.NET MVC Forums application. I emphasize the importance of Software Design Principles and justify my...

Posted Monday, September 08, 2008 10:22 AM

In this series of blog entries, I build an entire ASP.NET MVC forums application from start to finish. In this blog entry, I add the functionality to the Forums application that enables users to post new messages and replies. Before reading this blog entry, you should read the previous two blog entries in this series: ASP.NET MVC Application Building: Forums #1 – Create the Perfect Application – In this first entry, I explain the overall goals of the ASP.NET MVC Forums application. I emphasize the importance of Software Design Principles and justify my choice to use test-driven development. ASP.NET MVC Application Building: Forums...

Posted Saturday, September 06, 2008 12:44 AM

In this series of blog entries, I build an entire ASP.NET MVC Forums application from scratch. In this blog entry, I create my first unit test for the Forums application and implement the code necessary to pass the test. Before reading this blog entry, you might want to read the first entry in this series: ASP.NET MVC Application Building: Forums #1 – Create the Perfect Application – Describes the goals of the ASP.NET MVC Forums application. Create the ASP.NET MVC Application Let me start by creating a new ASP.NET MVC application. Launch Visual Studio 2008 and select the menu option File, New Project. Select...

Posted Friday, September 05, 2008 5:41 PM

In this series of blog entries, I build an entire ASP.NET MVC Forums application from start to finish. The goal is to discover and promote best-practices for building applications with the ASP.NET MVC framework. In this first entry, I discuss the overall goals for the forums application. I discuss the importance of avoiding code smells and how software design principles and patterns can help you write code that is resilient to future change. I also justify my choice to use test-driven development while building the Forums application. What is Good Software? I don’t want to build just any forums application. The goal...

Posted Friday, September 05, 2008 4:41 PM