Developing ASP .Net MVC 5 Web Applications - M20486 Course Outline

(5 Days) - Learning Credits Accepted

Overview

In this course, students will learn to develop advanced ASP.NET MVC applications using .NET Framework 4.5 tools and technologies. The focus will be on coding activities that enhance the performance and scalability of the Web site application. ASP.NET MVC will be introduced and compared with Web Forms so that students know when each should/could be used. This course will also prepare the student for exam 70-486.

Audience Profile

This course is intended for professional web developers who use Microsoft Visual Studio in an individual-based or team-based, small-sized to large development environment. Candidates for this course are interested in developing advanced web applications and want to manage the rendered HTML comprehensively. They want to create websites that separate the user interface, data access, and application logic.

Prerequisites

A minimum of one to two years of experience developing web-based applications by using Microsoft Visual Studio and Microsoft ASP.NET, proficiency in using the .NET Framework, and some familiarity with the C# language.

At Course Completion

At the completion of this course, students will be able to:

  • Describe the Microsoft Web Technologies stack and compare the various ASP.NET programming models.
  • Explore the structure of an MVC web application and identify features such as Models, Views, Controllers, configuration files, style sheets and script files.
  • Design the architecture and implementation of a web application that will meet a set of functional requirements, user interface requirements, and address business models.
  • Enable students to use a set of functional and business requirements to design the major components of a web application developed in ASP.NET Core MVC.
  • Configure the pipeline of ASP.NET Core web applications using middleware.
  • Leverage dependency injection across MVC application.
  • Add Controllers to an MVC Application to manage user interaction and select and return Views.
  • Create Views in an MVC application that display and edit data and interact with Controllers.
  • Create MVC Views that Controllers can use to display data and write code that can be reused in multiple Views.
  • Create MVC Models and write code that implements business logic within Model methods, properties, and events.
  • Create MVC Models and write code that implements business logic within Model methods, properties, and events.
  • Connect to a Database using Entity Framework.
  • Implement a consistent look and feel across an entire MVC web application.
  • Write JavaScript code that runs on the client-side and utilizes the jQuery script library to optimize the responsiveness of an MVC web application.
  • Add client side packages and configure Task Runners.
  • Apply a constent style to all pages in a web application.
  • Run unit tests and debugging tools against a web application in Visual Studio and configure an application for troubleshooting.
  • Locate and correct code errors in a web application.
  • Write an MVC application that authenticates and authorizes users to access content securely.
  • Build an MVC application that resists malicious attacks.
  • Use caching in MVC application.
  • Managing state in MVC applications.
  • Use the Web Sockets protocol to implement a chat room in an MVC application.
  • Describe what a Web API is and why developers might add a Web API to an application.
  • Implement a Web API to enable a broader use of an application’s functionality in other applications.
  • Describe how to package and deploy an ASP.NET MVC web application from a development computer to a web server for staging or production.
  • Deploy an MVC web application to Microsoft Azure.

Course Outline

Module 1: Exploring ASP.NET MVC 4

The goal of this module is to outline to the students the components of the Microsoft Web Technologies stack, which can be used to host a completed web application. Students will also learn about ASP.NET 4.5 and be introduced to the web forms, web pages, and MVC programming models. Finally they will see an overview of ASP.NET MVC 4, including new features and configuration.

  • Overview of Microsoft Web Technologies
  • Overview of ASP.NET 4.5
  • Introduction to ASP.NET MVC 4

Module 2: Designing ASP.NET MVC 4 Web Applications

The goal of this module is to introduce students to the typical design process that architects must complete when they plan an MVC 4 application. At this stage in the design process, MVC 4 has been selected as the most appropriate programming model, but the details of the application, such as the overall architecture, Controllers, Views, Models, and routes to create, have not been fixed. How to plan such details is shown during this module.

  • Planning in the Project Design Phase
  • Designing Models, Controllers, and Views

Module 3: Developing ASP.NET MVC 4 Models

The goal of this module is to enable the students to create Models within an MVC application that implement the business logic necessary to satisfy business requirements. The module also describes how to implement a connection to a database, or alternative data store, using the Entity Framework and LINQ.

  • Creating MVC Models
  • Working with Data

Module 4: Developing ASP.NET MVC 4 Controllers

The goal of this module is to enable students to add Controllers to MVC applications and to implement actions that respond to user input and other events. The students will learn how Controllers relate to Models and how to implement Controller actions that define the View used to display or edit data. This module also covers how to write action filters that run code before or after multiple actions in the Controller. The students will learn about situations when action filters are useful.

  • Writing Controllers and Actions
  • Writing Action Filters

Module 5: Developing ASP.NET MVC 4 Views

The goal of this module is to describe the role of Views in an MVC web application and enable users to create and code them. The syntax of a Razor View is of critical importance for students to understand because it defines both the layout and the functionality of the data display. HTML Helpers will also be discussed in detail and common Helpers, such as Html.ActionLink() and Html.EditorFor(), will be described. Reusing code by defining Partial Views and Razor Helpers will be discussed as well.

  • Creating Views with Razor Syntax
  • Using HTML Helpers
  • Reusing Code in Views

Module 6: Testing and Debugging ASP.NET MVC 4 Web Applications

The goal of this module is to enable students to increase the resilience and quality of an application by locating and correcting code errors, bugs, and other unexpected results. MVC applications are well suited to unit testing techniques and these techniques ensure a high quality of code by systematically testing the functionality of each small component. In addition the debugging tools and exception handling available in Visual Studio will be explained.

  • Unit Testing MVC Components
  • Implementing an Exception Handling Strategy

Module 7: Structuring ASP.NET MVC 4 Web Applications

The goal of this module is to enable students to structure a web application in such a way that users can rapidly locate the information they need. Two aspects of the design are emphasized: the URLs presented in the browser address bar should be understandable and can be controlled by adding routes to the ASP.NET Routing Engine, and the navigation controls, such as menus and breadcrumb trails, should present the most relevant links to frequently read pages. Search Engine Optimization is important throughout this module.

  • Analyzing Information Architecture
  • Configuring Routes
  • Creating a Navigation Structure

Module 8: Applying Styles to ASP.NET MVC 4 Web Applications

The goal of this module is to explore how students can impose a consistent look and feel to an MVC application and share other common components, such as headers and footers, between all Views. Besides describing CSS styles and template views, the module will discuss how to migrate a look and feel created by a web designer into an MVC application. Techniques for adapting the display of a site for small screens and mobile devices will also be introduced.

  • Using Template Views
  • Applying CSS to an MVC Application
  • Creating an Adaptive User Interface

Module 9: Building Responsive Pages in ASP.NET MVC 4 Web Applications

The goal of this module is to describe to the students how partial page updates and caching can optimize the responsiveness of a web application. Students will see how to make use of AJAX helpers and partial views to update small portions of a page instead of refreshing the entire page. The module also covers the different caches developers can use to store rendered pages and discusses how to configure caching for maximum performance.

  • Using AJAX and Partial Page Updates
  • Implementing a Caching Strategy

Module 10: Using JavaScript and jQuery for Responsive MVC 4 Web Applications

The goal of this module is to teach the students techniques that run code on the browser. This approach can increase the responsiveness of the application because a rendered page can respond to a user action without reloading the entire page from the server. Students will learn about the jQuery script library and how to use it to call web services and update user interface components.

  • Rendering and Running JavaScript Code
  • Using jQuery and jQueryUI

Module 11: Controlling Access to ASP.NET MVC 4 Web Applications

The goal of this module to ensure good security in terms of strong authentication and authorization for access. The lessons describe how to enable anonymous users to create their own user account and gain privileged access to content.

  • Implementing Authentication and Authorization
  • Assigning Roles and Membership

Module 12: Building a Resilient ASP.NET MVC 4 Web Application