COURSE

Introduction to ASP .NET MVC

Learn to Create Web Applications in .NET.

  • 2 Days
  • Intermediate
  • In-person / Online
  • £ On Request

Overview

Since the creation of the .NET framework the recommended method for developing Web Applications evolved, transitioning from heavyweight ASP .NET Web Controls to modern ASP .NET Web Applications. The ASP .NET MVC Framework provides a powerful approach to Web Application development enabling clean separation between presentation code and business logic, leading to faster development, layered architectures and components that can be unit tested.

This course provides existing developers with all the information they need to start developing ASP .NET MVC based Web Applications. The delivery is workshop based, with developers enhancing a sample application as the course progresses.

Outline

The Evolution of ASP .NET MVC

  • Advantages and disadvantages of Web Controls
  • Drawbacks of the Model-View-Presenter pattern
  • Differentiating Web Controls from the ASP .NET infrastructure
  • Alternative approaches to Web Application frameworks
  • How ASP .NET MVC evolved as a separate product

Creating a Simple MVC Web Application

  • How incoming requests are routed to controllers
  • Declaring controllers and business methods
  • Capturing information from request parameters
  • Building and returning ActionResult objects
  • How an ActionResult is mapped to a view
  • Options for passing model information into server pages
  • Creating output pages using the Html helper class

Making the Web Application Maintainable

  • Hiding data sources using the Data Access Object Pattern
  • Simplifying persistence logic using the Repository Pattern
  • Writing Unit Tests for DAO's and Controller classes
  • Writing Integration and Acceptance tests

Enhancing the Web Application

  • Customizing the routing information in Global.asax
  • Associating methods with request types via AcceptVerbs
  • Processing form parameters using Value Objects
  • Validating parameters and displaying error messages
  • Creating Controller Factories which perform Dependency Injection
  • Adding support for AJAX to server pages

Combining MVC with Other Frameworks

  • Using jQuery to simplify server pages
  • Using LINQ to enhance Data Access Objects
  • Writing DAO's using NHibernate and Generics
  • Using Unity and Spring .NET to build controllers
  • Creating your own View Resolvers

Requirements

  • Delegates must be C# developers who are familiar with Web Applications
  • Experience with Visual Studio and AJAX is helpful but not essential
COURSE

Introduction to ASP .NET MVC

Learn to Create Web Applications in .NET.

  • 2 Days
  • Intermediate
  • In-person / Online
  • £ On Request

Deloitte logo
Atlassian logo
Bose logo
Workday logo
BMW logo
Amex logo
McAfee logo
PWC logo