Creating the View

Now we are ready to get started with the view. We can create a view in a couple of ways. The first is to expand the Views folder, right-click the folder that relates to our controller, and select Add Images View from the pop-up menu. The second, and usually more convenient, way is to right-click anywhere in the action method in the controller class and select Add View from the pop-up menu; it's more convenient because Visual Studio works out where the view should go and sets the name for the view to match the action method.

Choose one of these techniques to create a new view for the List method in the RegistrationController class. You ...

Get Applied ASP.NET 4 in Context now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.