Exercise 4: Verification

In order to verify that you have correctly performed all the steps in the previous exercise, proceed as follows:

  1. With the application open in a browser, you should note that:
    1. The HomeController’s Index action method found and displayed the \Views\Home\Index.aspx View template, even though the code called return View(), because the View template followed the standard naming convention.
    2. The Home Page displays the welcome message defined within the \Views\Home\Index.aspx view template.
    3. The Home Page is using the MasterPage template, and so the welcome message is contained within the standard site HTML layout.

      Figure 33

      Home Index View using the MasterPage and style defined

Next Step

Exercise 5: Creating a View Model