ASP. NET mvc3 official example music store-Simplified Chinese tutorial

Source: Internet
Author: User

Preface:

This article is from the official Microsoft mvc3 tutorial. download the latest source code and tutorial in English at http://mvcmusicstore.codeplex.com/( this article is from inxproj. com)

As with the English tutorial, this article will be divided into ten chapters to introduce the establishment of this music store.

Navigation directory:

  • (1) Preparations for creating an MVC Project
  • (2) Controller
  • (3) Views and Models
  • (4) Data Access
  • (5) use the scaffolding function to create an editing page
  • (6) Use Data annotation as the model for verification
  • (7) members and permissions
  • (8) Ajax-refreshed shopping cart
  • (9) Registration and payment
  • (10) Final version revision and release

Summary:

Original article: the MVC music store is a tutorial application that introduces and explains step-by-step how to use ASP. net MVC and visual web developer for web development. we'll be starting slowly, so beginner level Web development experience is okay.

The application we'll be building is a simple music store. There are three main parts to the application: shopping, checkout, and administration.

The MVC music store is a sample application that describes and explains how to use ASP. Net MVC and visual web developer for web development step by step. This tutorial will be explained slowly, so even if you are a beginner, there is no problem.

We want to develop a simple music store with three main functions: shopping, payment, and management.

 

 

 

Original article: visitors can browse albums by genre:

Translation: visitors can view records by album category

 

 

Original article: They can view a single album and add it to their cart:

You can view a single record and add it to the shopping cart:

 

 

Original article: They can review their cart, removing any items they no longer want:

You can view the shopping cart and remove unwanted items:

 

 

Original article: proceeding to checkout will prompt them to login or register for a user account.

Translation: the user is prompted to register or log on to the account when paying the order.

 

 

Original article: After creating an account, they can complete the order by filling out shipping and payment information. to keep things simple, we're re running an amazing promotion: Everything's free if they enter Promotion Code "free "!

After creating an account, the payer who uses the "free code" in the example program seems to have simulated the payment process. (In fact, this is not a translation)

 

 

Original article: after ordering, they see a simple confirmation screen:

After the order is completed, there will be a simple confirmation interface:

 

 

In addition to customer-faceing pages, we'll also build an administrator section that shows a list of albums from which administrators can create, edit, and delete albums:

In addition to the visitor's browsing interface, we also created a background management interface for managing the addition, deletion, query, and modification of records:

 

 

 

Preparations:

Required development tools:

  • Visual Web Developer 2010 express SP1 or Visual Studio 2010 SP1
  • SQL Server compact or SQL Server
  • ASP. NET mvc3 and ASP. net mvc 3 tools update
  • A copy of mvcmusicstore-assets code

I used Visual Studio 2010 SP1 + SQL Server 2008. The visual web developer 2010 express and SQL Server compact mentioned above are free of charge. You can download them from Microsoft official website. Mvc3 is required. The installation method of mvc3 Chinese is a little troublesome. An independent article will be provided to illustrate how to install mvc3. Anyone in urgent need can also Google how to install it. I have been wondering why my controller's adding interface is different from the interface in the official tutorial. After I communicated with my friends, I found that I had installed less ASP. net MVC 3 tools update, which allows programmers to reduce coding, is a good thing. Mvcmusicstore-assets, which is included in the compressed package downloaded by the http://mvcmusicstore.codeplex.com.

Software:

Visual Studio Web Developer express SP1 prerequisites

Http://www.microsoft.com/web/gallery/install.aspx? Appid = vwd2010sp1pack

ASP. net mvc 3 tools update

Http://www.microsoft.com/web/gallery/install.aspx? Appid = mvc3

SQL Server compact 4.0-including both runtime and tools support

Http://www.microsoft.com/web/gallery/install.aspx? Appid = sqlce; sqlcevstools_4_0

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.