Utbildningar

QA-QAMVC5

Ladda ner som PDF

Building Effective ASP.NET MVC 5 Web Applications using Visual Studio 2013

The course takes existing .NET developers and provides them with the necessary skills to develop modern MVC-5 web-based applications, using Visual Studio 2013 and the ASP.NET Framework 4.51. This course prepares delegates for Exam 70-486.

Prior knowledge

  • Delegates should have basic knowledge of HTML and web page creation using JavaScript and CSS. These skills can be obtained by attending QA's Building an Effective Web Site course
  • Delegates should have an existing knowledge of a .NET programming language (C#3.0/4.0/5.0 or VB 2008/2010).
  • Delegates without these skills would benefit from attending a QA .NET programming language course.
  • Delegates are not required to have any experience in ASP.NET WebForm development but require at least 6 months experience working with the .NET 4.0/4.5 framework

Objectives:

Course Outline:

Module 1: Hosting Web Applications

In Module 1, delegates learn about the different hosting options available to ASP.NET application frameworks. They will also learn how to configure and extend each of the underlying hosts, using Modules, Request Handers, or OWIN Middleware. Delegates will also look at self-hosting an ASP.NET application using OWIN and Katana.

Lessons:

  • The World Wide Web and ASP.NET Frameworks
  • IIS request pipeline, Modules and Request Handlers
  • Configuring pipeline components using machine.config
  • OWIN/Katana Middleware

Lab:

  • Hosting Web Application

After completing this module delegates will:

  • Know the hosting options available for MVC Applications
  • Understand how to extend the hosting platform
  • Become familiar with the OWIN specification and Katana

Module 2: MVC5 Application Overview

In this module, delegates learn about the separation of concerns, working with Models, Controllers and Views to understand how a MVC application is structured and how the different parts interact with the routing engine to resolve a client request.

Lessons:

  • The MVC Pattern
  • Models, Views, and Controllers
  • ASP.NET MVC Conventions
  • MVC5 Project structure
  • Visual Studio 2013 support

Lab:

  • Creating a ASP.NET MVC 5 project using Visual Studio 2013

After completing this module delegates will:

  • Have gained a high-level overview of ... Läs mer

Objectives:

Course Outline:

Module 1: Hosting Web Applications

In Module 1, delegates learn about the different hosting options available to ASP.NET application frameworks. They will also learn how to configure and extend each of the underlying hosts, using Modules, Request Handers, or OWIN Middleware. Delegates will also look at self-hosting an ASP.NET application using OWIN and Katana.

Lessons:

  • The World Wide Web and ASP.NET Frameworks
  • IIS request pipeline, Modules and Request Handlers
  • Configuring pipeline components using machine.config
  • OWIN/Katana Middleware

Lab:

  • Hosting Web Application

After completing this module delegates will:

  • Know the hosting options available for MVC Applications
  • Understand how to extend the hosting platform
  • Become familiar with the OWIN specification and Katana

Module 2: MVC5 Application Overview

In this module, delegates learn about the separation of concerns, working with Models, Controllers and Views to understand how a MVC application is structured and how the different parts interact with the routing engine to resolve a client request.

Lessons:

  • The MVC Pattern
  • Models, Views, and Controllers
  • ASP.NET MVC Conventions
  • MVC5 Project structure
  • Visual Studio 2013 support

Lab:

  • Creating a ASP.NET MVC 5 project using Visual Studio 2013

After completing this module delegates will:

  • Have gained a high-level overview of how to build a MVC-5 application

Module 3: Models in depth

In Module 3, delegates will work with the Entity Framework to build the models for an MVC-5 application. They will learn how to use code first migrations to apply model changes to a database and how to encapsulate data access logic using a repository pattern.

Lessons:

  • The Entity Framework
  • Modelling Data
  • Querying data using LINQ
  • Code first migrations

Lab:

  • Creating Models using the Entity Framework

After completing this module delegates will:

  • Know the different modelling options available
  • Be able to create Entity Framework Models using Code first and Model first.
  • Use Code first migrations

Module 4: Controllers and Actions

Module 4 teaches delegates how to structure and build controllers for key entities by learning how to write actions that return views for different scenarios, including: List, Details, Create, Edit and Delete. Delegates will also learn when views should return different Action result types.

Lessons:

  • What is a controller?
  • Action and parameters
  • Returning Results from Actions
  • Passing data to views
  • Asynchronous Actions
  • Processing HTTP Forms

Lab:

  • Building controller classes

After completing this module delegates will:

  • Understand the role of the controller
  • Be able to write Actions to process requests

Module 5: Creating Razor Views

Module 5 helps delegates to create views and partial views using the Razor engine. They will learn how to render client side mark-up, based on what the Controller's request and the Model sends. Delegates learn how to create master layout pages to enforce a consistent layout and style across a website, plus how to implement forms for the websites 'Create', 'Update' and 'Delete' pages.

Lessons:

  • Using views and partial views
  • Razor
  • Layout pages
  • Using data in views
  • Strongly Typed Views
  • The HTML Helper methods

Lab:

  • Implementing views and partial views

After completing this module delegates will:

  • Be able to use the Razor engine to render views and partial views.
  • Create master layout pages for a consistent look and feel.
  • Use Helper methods to generate client side mark-up.
  • Know how to access model data from within Views

Module 6: Styling with Bootstrap

Module 6 teaches delegates how to work with Bootstrap. They will use the various Bootstrap styles to customise the look and feel of a website. Become familiar with the Bootstraps grid system to control the layout of content and how bootstrap provides a responsive design.

Lessons:

  • Bootstrap getting started
  • Bundling and Minification
  • Bootstraps responsive design
  • Bootstrap components

Lab:

  • Styling webpages with Bootstrap

After completing this module delegates will:

  • Know how to use the Bootstrap UI Framework
  • Be able to create mobile-first responsive web pages

Module 7: Model Binding and validation

Delegates will learn to use data annotation attributes to provide validation for the model data. They use html helpers to provide validation assistance within views, how to protect a MVC application from script injection attacks, and how to implement custom exception handling within the application.

Lessons:

  • Model Binding
  • Data Annotations and Validation Attributes
  • Preventing JavaScript Injection attacks
  • Handling errors in MVC Applications

Lab:

  • Model Validation and error handling

After completing this module delegates will:

  • Understand the Model Binding process.
  • Be able to use Data Annotations and Validation attributes within model classes
  • Provide custom error handling for a MVC application.

Module 8: Action filters

In Module 8, delegates will use Action Filters to control the behavior of an application. They will first use the built-in filters, then learn to create custom Action Filters. Delegates will also make use of global Action Filters, applying them both statically and dynamically.

Lessons:

  • What are Action Filters?
  • Types of Action Filter
  • Using Action Filters
  • Creating Custom Action Filters
  • Adding global filters

Lab:

  • Using Action Filters

After completing this module delegates will:

  • Know the different types of filters available
  • Be able to use a built-in Action Filters
  • Create a custom Action Filter
  • Configure global filters

Module 9: Advanced URL Routing

Delegates learn how to create routes that map URLs to controller actions using both convention-base routing and attribute-based routing. They will implement routing constraints to ensure that routes contain the expected data, and how to use Glimpse to de-bug and test complex route configurations.

Lessons:

  • What are routes?
  • Defining and using routes
  • Convention-based Routing
  • Attribute-based Routing
  • Debugging routes

Lab:

  • Configuring and de-bugging routes

After completing this module delegates will:

  • Understand the purpose of routes.
  • Know how to add literals and constraints to routes.
  • Know benefit of Areas.
  • Be able to use Glimpse to de-bug routes.

Module 10: Web API 2 Controllers and Actions

Module 10 teaches delegates when and how to create a restful service using Web API 2. They will learn to use Fiddler2 to help test and debug Web APIs during development and how to call a Web API from multiple clients.

Lessons:

  • WCF vs Web API
  • The HTTP Protocol
  • Content negotiation
  • Web API Controllers
  • Routing
  • Error handling

Lab:

  • Creating and calling Web API Services

After completing this module delegates will:

  • Understand the Web API framework
  • Learn about the HTTP requests and responses
  • Know how to create a Web API
  • Be able to consume a Web API from a variety of devices

Module 11: Maintaining Server State and Scalability

Delegates learn about the various ways of maintaining state within a web server,how different state options affect the scalability of an application, and how to use page output caching and application caching service providers to improve application performance.

Lessons:

  • State management
  • Maintaining state between requests
  • Maintaining state across all requests
  • Maintaining state between user sessions
  • Using Caching to increase performance

Lab:

  • Managing and maintaining state

After completing this module delegates will:

  • Understand the various techniques for state management.
  • How to use caching to improve application performance.

Module 12: Unit Testing MVC 5 Applications

This module teaches delegates to use Visual Studio 2013 Unit Testing capabilities to carry out Test Driven Development (TDD) within an application. They will implement Dependency Injection and learn to create a mock HttpContext for use when testing MVC 5 projects.

Lessons:

  • Test Driven Development (TDD)
  • Writing tests in Visual Studio 2013
  • Dependency Injection
  • Mocking HttpContext

Lab:

  • Implement Test Driven Development
  • Using Dependency Injection in web applications

After completing this module delegates will:

  • Understand the principles of Test Driven Development (TDD)
  • Know how to implement Unit Tests using Visual Studio 2013
  • Use Dependency Injection to support mocking frameworks

Module 13: Using AJAX with MVC 5 Applications

Delegates will learn how to make use of AJAX helpers and partial views to do client-side partial updates, and when to use JQuery to gain greater control when making Ajax calls to a server.

Lessons:

  • What is AJAX
  • AJAX Frameworks
  • ASP.NET AJAX
  • jQuery
  • Visual Studio 2013 support

Lab:

  • Enhancing a MVC application with AJAX

After completing this module delegates will:

  • Understand the need for AJAX
  • Have explored the available frameworks
  • Know how to implement jQuery in an MVC application

Module 14: Real-time Applications using SignalR

Module 14 teaches delegates to use SignalR to add real-time functionality to an MVC application. They will learn how to include the SignalR library into an ASP.NET web application, create hub classes, and design the client-side pages that make and receive calls to and from a server.

Lessons:

  • The demand for real-time applications
  • Emulating real-time functionality over HTTP
  • What is SignalR?
  • Using Hubs
  • Connection handling in SignalR
  • Error handling and debugging

Lab:

  • Adding real-time functionality to a web application

After completing this module delegate will:

  • Know how to add real-time capabilities to a web application using the SignalR APIs 

Module 15: Securing Applications with ASP.NET Identity

Module 15 examines the ASP.NET Identity's Controllers, Models and Views that are added automatically when creating new MVC projects. Delegates will examine each of the security options available and learn how to configure, integrate and extend ASP.NET Identity.

Lessons:

  • ASP.NET Identity
  • Authorization
  • Individual User Accounts
  • Organizational Accounts
  • Creating user profiles
  • Claims based authentication

Lab:

  • Implementing ASP.NET Identity

After completing this module students will:

  • Understand how to secure MVC 5 applications.
  • Know how to configure and customize the different security frameworks

Module 16: Deploying MVC 5 Applications

Module 16 teaches delegates about the different deployment options available. They learn how to create deployment packages to deploy MVC applications into IIS and Azure, and how to use configuration transforms to modify web.config during deployment.

Lessons:

  • Deployment Options
  • The Web Deployment tool
  • Working with Packages
  • Configuring Deployment Options
  • Applying Transforms
  • Deploying Web Applications to Azure

Lab:

  • Deploying ASP.NET MVC 5 Applications

After completing this module delegates will:

  • Know how to deploy ASP.NET MVC 5 applications to hosting servers and Microsoft's Azure
  • How to create and configure deployment profiles
  • Understand Web Deploy

Utbildningen levereras i samarbete med

Kurs-ID: QA-QAMVC5
Längd: 5 dagar
Pris exkl moms: 35 616 kr

Frågor om kursen!?

Har du frågor om kursens innehåll, leveransdatum/ort eller behöver en företagsanpassad variant? Fyll i formuläret nedan!


Avtalsrabatter och kampanjer kan ej nyttjas på denna kurs.


Ort och datum

Cloud Access
i Läs mer

Delta på kursen från ditt hem, jobb eller annan plats.

24 okt – 28 okt
Boka nu!
19 dec – 23 dec
Boka nu!

Tipsa