Quickly create a movie database application with asp.net MVC

Source: Internet
Author: User
Tags pack visual studio visual studio 2010

Stephen Walther from the beginning to the end establishes the entire data-driven asp.net MVC application. This tutorial is a good introduction to those who have just come into contact with the ASP.net MVC framework and want to get a new process for building asp.net MVC applications.

The goal of this tutorial is to give you an idea of what it would look like to create a asp.net MVC application. In this lesson, from start to finish, I will directly build a complete asp.net MVC application. I show you how to build a simple data-driven application that shows how to list, create, and edit database records.

To simplify the process of creating an application, we take full advantage of the capabilities of Visual Studio 2008. We will let Visual Studio generate initial code and content for our control layer, model layer, and view layer.

If you have already used active Server Pages or ASP. NET to work, then you will be familiar with ASP.net mvc. The ASP.net MVC view is very similar to the pages of an ASP application. And like the traditional asp.net Web Forms application, asp.net MVC provides you with a rich language and. NET Framework classes. I hope this tutorial will give you an idea of the similarities and differences between the experience of creating asp.net MVC applications and creating ASP or asp.net Web Forms applications.

This movie overview of the database application

Because our goal is to make things simpler, we will build a very simple movie database application. Our simple Movie Database application will enable us to do three things:

1. List A series of movie Database records

2. Create a new movie Database record

3. Edit an existing Movie Database record

Again, because we want things to be simple, we use the ASP.net MVC framework to build our applications with a few features. For example, we don't use test-driven development.

To create our application, we need to complete the following steps:

1. Building the ASP.net MVC Web application project

2. Creating a Database

3. Creating a Database model layer

4. Establishing the ASP.net MVC control layer

5. Building the ASP.net MVC view layer

Front section (preparatory work)

You will need visual Studio 2008 or Visual Web Developer 2008 Express to build a asp.net MVC application. You also need to download the ASP.net MVC MVC framework.

If you have not installed Visual Studio 2008, you can download a 90-day trial version of Visual Studio 2008 from this site:

Http://msdn.microsoft.com/en-us/vs2008/products/cc268305.aspx

Alternatively, you can create a asp.net MVC application using visual Web Developer Express 2008. If you decide to use the visual Web Developer Express, you must have installed Service Pack 1. You can download the Visual Web Developer 2008 Express with Service Pack 1 from this site:

Http://www.microsoft.com/downloads/details.aspx? familyid=bdb6391c-05ca-4036-9154-6df4f6debd14&displaylang=en

After you install Visual Studio 2008 or Visual Web Developer 2008, you will need to install the ASP.net MVC framework. You can download the ASP.net MVC framework from the following websites:

Http://www.asp.net/mvc/

Create a asp.net MVC Web application project

Let's start by using Visual Studio 2010 to create the ASP.net MVC Web application project. Select the menu selection file, create a new item, and you will see the dialog box for this new item. Select C # as the programming language and select the ASP.net MVC 2 Web Application project template. Name your project Movieapp and click on "OK" button.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.