ASP. net mvc 2 getting started walkthrough 1-creating a project

Source: Internet
Author: User

I. Conventions

1) Visual Studio 2010, hereinafter referred to as vs2010

Ii. Description

ASP. net mvc 2 is installed with vs2010. In this example, a new module is added to the ASP. net mvc 2 project created through vs2010: News management.

ASP. net mvc 2 for Visual Studio 2008 installation package download

Iii. Environment

Operating System: Windows 7 Ultimate

Data Base: SQL Server 2008 (named instance) Enterprise Edition

Development Tool: Visual Studio 2010 ultimate

Runtime Environment:. NET Framework 4.0

Iv. Table Design

Tool: Power Designer 15.0

Design a news table and add several columns: ID (Primary Key), title, category, content, and time.

Then generate a table in the SQL Server database (this step can be done directly using Power Designer ).

5. Create an ASP. net mvc 2 Project

Use file -- New -- project to open the new project window, select your development language (C # Here), and under the web template, you can find ASP. net MVC 2 web application, select and edit the name and storage path, and then create a project.

If you want to create a unit test project at the same time, select Yes, create a unit test project on the interface]

After creating a project, you can see the directory structure of the project in Solution Explorer:

The content folder is a CSS style file, and the scripts folder contains the script file, including the latest jquery script file. The MVC directory structure is clear.

The next article will add a news management module based on this project to display the news list and add, modify, delete, and browse functions.

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.