Skip to Main Content
ASP.NET 4 24-Hour Trainer
book

ASP.NET 4 24-Hour Trainer

by Toi B. Wright
July 2010
Beginner content levelBeginner
552 pages
10h 14m
English
Wrox
Content preview from ASP.NET 4 24-Hour Trainer

Chapter 7B. Your First ASP.NET MVC Web Application

In this lesson you learn how to develop your first web application using the ASP.NET MVC framework. I also introduce the folder structure that is required when using the MVC framework and explain the components of a page.

THE SAMPLE ASP.NET MVC APPLICATION

To create the sample ASP.NET MVC application, follow these steps:

  1. Select New Project from the File menu.

  2. Select the ASP.NET MVC 2 Web Application template.

  3. Click the OK button (see Figure 7B-1).

    FIGURE 7B-1

    Figure 7B.1. FIGURE 7B-1

When you use the ASP.NET MVC 2 Web Application template, Microsoft Visual Web Developer 2010 Express automatically creates a complete sample web application. Select Start Debugging from the Debug menu or press the F5 key to start the sample application.

The default for MVC is to run in debug mode. Nevertheless, the first time you run the sample web application you may receive the Debugging Not Enabled dialog box shown in Figure 7B-2. If you do, click the OK button to enable debugging.

FIGURE 7B-2

Figure 7B.2. FIGURE 7B-2

Figure 7B-3 shows the Home page of the sample application.

FIGURE 7B-3

Figure 7B.3. FIGURE 7B-3

You can use the tabs at the top of the page to navigate between the Home page and the About ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

ASP.NET 4 24-Hour Trainer

ASP.NET 4 24-Hour Trainer

Toi B. Wright
ASP.NET 4 Unleashed

ASP.NET 4 Unleashed

Stephen Walther, Kevin Hoffman, Nate Dudek

Publisher Resources

ISBN: 9780470596913Purchase bookExamplesErrata