Sunteți pe pagina 1din 18

ASP.

NET MVC TRAINING OBJECTIVES

Understand the MVC design pattern and how it's applied in ASP.NET MVC

Recognize the benefits and drawbacks of using ASP.NET MVC

Learn to make good decisions about application architecture and the choice of data access technology

Use ASP.NET MVC's routing system to achieve a REST-style architecture

Learn how to build a compelling and maintainable HTML user interface using the Razor view engine
and client-side JavaScript

Use the Web API 2 framework to simplify the creation of HTTP services

Gain experience with using adaptive rendering, mobile-specific views, and a view switcher to support
a variety of mobile devices

Learn how to extend and modify ASP.NET MVC by creating custom components and templates

ASP.NET MVC TRAINING OUTLINE


Expand All | Collapse All | Printer-Friendly
Introduction
Goals of Modern Web Development
ASP.NET MVC
Model-View-Controller Design Pattern
Unit Testing
Convention Over Configuration
Managing Dependencies
Case-Study Application
Hands-On Lab Exercise
Request Pipeline
Routing
Configuration
RouteValueDictionary
Route Constraints
Catch-All Parameter

Ignoring Routes
Hands-On Lab Exercise
Controllers
Introduction
Conventions
Request Pipeline
Controller Class Hierarchy
ActionResult
Hands-On Lab Exercise
Models
Hands-On Lab Exercise
Object-Relational Mapping
Entity Framework 6
Evolution
NuGet
Code First
DbContext
Data Annotations
Fluent API
Performance
Hands-On Lab Exercise
Views
Implementation
View Engines
Razor Syntax
View Templates
Bootstrap Framework
Layouts
Hands-On Lab Exercise
Helpers
HTML Helpers
Html.ActionLink

Url.Action
Strongly-Typed Helpers
Custom Helpers
Inline Razor Helpers
Hands-On Lab Exercise
Strongly-Typed Views
Creating
Passing Model Objects
Hands-On Lab Exercise
Controller Inheritance
Code Reuse
Initialize Method
Hands-On Lab Exercise
HTML Forms
Helpers
Hands-On Lab Exercise
Action Selectors
Model Binding
Hands-On Lab Exercise
Partial Views and Child Actions
Partial Views
Hands-On Lab Exercise
Child Actions
Display and Edit Annotations
Hands-On Lab Exercise
ViewModels
Model Binding
Inheritance
Hands-On Lab Exercise
Data Validation
Validation Attributes

ModelState
IValidatableObject
Hands-On Lab Exercise
Remote Validation
jQuery and Ajax
jQuery
Unobtrusive JavaScript
Ajax Helpers
Hands-On Lab Exercise
jQuery UI
Action Filters
OutputCache
HandleError
RequireHttps
Authorization
Global Filters
Custom Filters
Hands-On Lab Exercise
Asynchronous Controller Actions
Example
Timeouts
Mobile Clients
Bootstrap Framework
Overriding Views
jQuery Mobile
Web API 2
ApiController
Action Parameters
Exceptions
Configuration
Routing
Model Binding

Formatters
Status Codes
Hands-On Lab Exercise
Security
Authentication
Cross-Site Scripting (XSS)
Cross-Site Request Forgery (CSRF)
Over-Posting
Deployment
Web.config Transformations
IIS Best Practices
Conclusion

*************************************************************************************
****
Class Outline
1.

Introduction

1.

ASP and ASP.NET WebForms

2.

One ASP.NET in VS 2013

3.

Web Standards and REST

4.

JavaScript and Ajax

5.

The MVC Design Pattern

6.

Unit Testing

7.

Managing Dependencies

B. ASP.NET MVC Architecture

1.

ASP.NET Platform
2.

Controllers, Models, and Views

3.

URL Routing

4.

Controller Actions

5.

Razor View Engine

6.

Extensibility

B. Defining the Model

1.

Persistence Ignorance
2.

Repository Pattern

3.

Object Relational Mapping (ORM)

1.

ADO.NET
2.

Entity Framework 6

3.

nHibernate

II.

Using an IoC Container

B. Routes and URLs

I.

Introduction to Routing
II. Defining Routes
III. Route Evaluation
IV. The Controller Factory
V. Constraints
VI. Exempting URLs

VII. Constructing Outgoing URLs


VIII. Unit Testing Routes
B. Controllers and Actions

I.

IController, ControllerBase, and Controller


II. Defining Actions
III. Action Selectors
IV. Action Filters
V. HTTP Verbs
VI. HttpContext and RouteData

VII. Maintaining Testability


VIII. Returning Data with ActionResult
IX. Parameters and the Model Binder
X. Asynchronous Action Methods
B. Views

I.

View Engines
II. Templates and Scaffolding
III. Bootstrap Framework
IV. Razor Syntax
V. ViewData and ViewBag
VI. Strongly-Typed Views

VII. Layout Pages


VIII. Custom Sections
IX. Partial Views

X. Child Actions
XI. Using a ViewModel Object
B. HTML Helpers

I.

Basic Helpers
II. Strongly-Typed Helpers
III. Creating Custom Helpers
IV. Declarative Helpers

B. Data Validation

I.

Data Annotations
II. Validation HTML Helpers
III. ModelState
IV. IValidatableObject
V. Client Side Validation

B. Authentication and Authorization

I.

ASP.NET Identity
II.

Using Windows Authentication

III.

Building a Custom Account Controller

IV.

Configuring Forms Authentication

V.

Using the Authorize Attribute

VI.

Authentication Filters

VII.

OAuth2 and OpenID

B. Ajax

I.

Controller Actions for Ajax

II.

Ajax Helpers

III.

Unobtrusive Ajax

IV.

Ajax with jQuery

B. Web API 2

I.

Using HTTP as an Application Protocol

II.

Content Negotiation

III.

Routing

IV.

Attribute Routing

V.

ApiController

VI.

MediaTypeFormatters

VII.

Cross Origin Resource Sharing (CORS)

VIII.
IX.

Open Web Interface for .NET (OWIN)


Web API OData

B. Building a Rich Client-Side UI

I.

jQuery UI

II.

jQuery Templates

III.

Knockout.js

B. Mobile Clients

I.

CSS 3 Media Queries

II.

Responsive vs. Adaptive

III.

Mobile-Specific Views

IV.

Using a View Switcher

B. Customizing and Extending ASP.NET MVC

I.

ASP.NET MVC Pipeline

II. Advanced Routing


III. Custom Global Filters
IV. Customizing MVC Code Templates
V. Creating a Custom Controller Factory
B. Deployment

I.

Server Requirements

II. Configuration Options

*************************************************************************************
*

ASP.NET MVC4 Course Content


MVC Introduction

Introduction

Getting Started

Models, Views, Controllers

Database Migrations

Showing Data

Listing data

Creating data

Authorization

About Security

Deploying To The Cloud

Summary

Razor and ASP.NET MVC

Introduction

Razor's Goals

Creating A Simple View

Intermingling Code and Markup

Models and ViewData

HTML Helpers

Partial Views

Layout Views

Startup Code

Configuration

Summary

Controllers in ASP.NET MVC

Introduction

Global Action Filters

Caching Child Actions

The ViewBag

New Action Results

Request Validation

Summary

Models in ASP.NET MVC

Introduction

Validation in MVC

Data Annotations

Custom Validation Attributes

Self-validating models

Client validation

Custom client validation

Remote validation

Summary

NuGet Package Management

Introduction Package Management

Where Do They Come From?

Where Do They Go?

Package Dependencies

Bootstrapping

Powershell

Custom Packages

Summary

Dependency Resolution in ASP.NET MVC

Introduction

Dependency Resolution

Benefits

IDependencyResolver

Controller Injection

View Injection

Activators

Filter Extensibility

Model Related Extensiblity

Summary

Web Optimization with ASP.NET MVC

Introduction

The Scenario

Installing

Configuring Bundles

Virtual Paths and Relative References

Rendering Bundles

Big Bundle Summary

The ASP.NET WebAPI

Introduction

Web Services

Getting started

Routing

Content Negotiation

Parameter Binding

Implementing GET

Showing Data

Implementing PUT

Implementing POST

Implementing DELETE

XML Client

Summary

Async Await in MVC 4

Introduction

Scalability

Task Parallel Library

Async Await

Async Controller

Async Action Async and Parallel

Async Timeouts

Async Exceptions

Async Testing

Summary

AJAX with ASP.NET MVC

Introduction

Why AJAX?

Raw AJAX with MVC

Observations

AJAX Infrastructure

Managing Scripts

Preparing for AJAX

AJAX Helpers

AJAX Options

Partial Page Rendering

Error Handling

Beyond the Helpers

Auto-completion

Client Validation

Date Picker

JSON and MVC

WCF and MVC

Conclusion

*************************************************************************************

S-ar putea să vă placă și