Visual Studio 2013 teaches you how to use MVC5

Source: Internet
Author: User
Keywords Visual Studio 2013 ASP.NET MVC5
Tags .net address application applications asp asp.net browser click

This article is mainly about using Visual Studio 2013 to teach you to build an entry-level ASP.net MVC5 Web application. This tutorial supporting the C # source project can be downloaded through the following Web site: C # version of the source link. Not only that, you can also finish compiling the source code and configuration database by consulting building the Chapter Downloads. You can run MVC 5 applications in Visual Studio. You can also deploy the Web application to a managed service provider. Microsoft offers free web hosting for up to 10 sites, freeware Windows Azure trial account. This tutorial was written by Scott Guthrie (Twitter @scottgu), Scott Hanselman (Twitter: @shanselman), and Rick Anderson (@RickAndMSFT). By the Grape City Control team translation (Sina Weibo @ Grape City control).

Run the Visual Studio Express 2013 for Web or Visual Studio 2013 to start this instance.

Visual Studio is an IDE integrated development environment. Just as you use Microsoft Word to write a document, you can use the Integrated development environment (IDE) to create an application. Various options are displayed in a top toolbar in Visual Studio for you to use. There is also a menu in the IDE that provides another way to perform a task. (For example, you can select New project from the Start page, you can use the menu, and then choose File > New project)

Create your first MVC 5 application

Click New Project, select Visual C # on the left, then select the Web, then select ASP.net web Creator. Name your project "Mvcmovie" and click OK.

In the New asp.net Project dialog box, select the MVC template, and then click OK.

The ASP.net MVC project that Visual Studio just created uses the default template, so you don't need to do anything in the current project! This is a simple "Hello world!" Works, and this is also a good place to start your "Mvcmovie" project.

Press the keyboard shortcut F5 to start debugging. F5 enables Visual Studio to start IIS Express and run a Web application. Visual Studio then launches the browser and opens the application's main page. Note that localhost:port# is displayed in the browser's address bar instead of an address like example.com. This is because localhost is always parsed into your own local computer, in which case this is the application you just built. When Visual Studio runs a Web project, it uses a Web service with a random port. In the picture below, the port number is 1234. When you run the application, you may see a different port number.

On the right side of the default template page, you are provided with home, about (about), and contact pages. The screenshot below does not see "home", "about" and "contact" connections. Depending on the size of your browser form, you can see the links by clicking the navigation icon in the upper-right corner.

At the same time, the ASP.net MVC application created by the default template also provides registration and login capabilities. The next step is to modify this default application and learn some knowledge about asp.net mvc. Close the browser, let's change some of the source code.

Original address: http://www.asp.net/mvc/tutorials/mvc-5/introduction/getting-started

Address: http://powertoolsteam.blog.51cto.com/2369428/1323687

"Edit Recommendation"

Visual Studio 2013 preview: Unlock Azure to develop Visual Studio 2013 new features "responsible editor: Wang Chengcheng TEL: (010) 68476606"

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.