Вы находитесь на странице: 1из 21

Module 1

Overview of Web Application Design

Module Overview
Overview of IIS 7.0 Overview of ASP.NET 4.0

Introduction to the MVC Framework


Overview of the Request Life Cycle

Lesson 1: Overview of IIS 7.0


Key Features of IIS 7.0 Architecture of ASP.NET on IIS 7.0

ASP.NET Enhancements for IIS


Demonstration: Administrating IIS 7.0 by Using IIS

Manager

Key Features of IIS 7.0


Modular Architecture New Configuration Store

Management

Architecture of ASP.NET on IIS 7.0

Authentication
Basic NTLM Anon

CGI Determine Handler

Authentication Forms Windows

Static File
ISAPI

ASPX Map Handler

Trace

Send Response Log Compression

...

ASP.NET Enhancements for IIS 7.0


All content types are supported Fully extend IIS with ASP.NET

Unified server runtime

Demonstration: Administering IIS 7.0 by Using IIS Manager


Create New Website Change Authentication Edit Permissions Set Connection Strings Set Application Settings Stop and Start Website Recycle Application Pool

Lesson 2: Overview of ASP.NET 4.0


ASP.NET 4.0 Architecture New Features in ASP.NET 4.0

ASP.NET 4.0 Architecture


Caching Pages Master Pages Membership

Profile
Intrinsics Modules

Controls
Roles Handlers

Globalization

New Features in ASP.NET 4.0


Output Caching Compressible Serialized Session State

Performance Monitoring
ASP.NET Routing

Lesson 3: Introduction to the MVC Framework


What is the MVC Framework? Demonstration: Exploring an MVC Application

What is the MVC Framework?


MVC is a reference to a design pattern (M)odel

(V)iew
(C)ontroller

Demonstration: Exploring an MVC Application

Demonstrate structure of MVC Application

Lesson 4: Overview of the Request Life Cycle


Life Cycle of a Web Forms Request Life Cycle of an MVC Request

Comparison of the Web Forms and MVC Request Life

Cycles

Working with the Web Forms Page Life Cycle

Life Cycle of a Web Forms Request


Following the Instantiation stage, the Initialization stage begins for the Page and all its controls Page life cycle begins with invoking the HTTP Handlers ProcessRequest() method, which builds up the control hierarchy (the Instantiation stage)

Initialization LoadViewState LoadPostbackData

Controls raise their Init Event


Only in Postbacks

Only in Postbacks Controls raise their LoadEvent Only in Postbacks

HTTP Handler

Load RaisePostBackEvent SaveViewState

The rendered markup is returned to the web server

PreRender Render
The Render stage generates the HTML markup for the page. This markup is returned to the web server, which sends it back to the requesting client.

Life Cycle of a MVC Request


Browser URL Routing Controller Model View

POST new

Invoke action

Invoke method

Lookup view

Render (viewData) HTML

Comparison of the Web Forms and MVC Request Life Cycles


Browser IIS ASP.NET HTTP runtime
Mapped page HTTP handler

Page class
Page life cycle (preliminaries)
Web Forms

URL router
Mapped MVC HTTP handler

Controller Factory Method execution View Engine

Postback event Page life cycle (finalization) Updating Controls Response output stream

ASP.NET MVC

Working with the Web Forms Page Life Cycle


The Web Forms page life cycle can be manipulated to

perform work that you need to accomplish before the page is rendered to the user

Lab: Exploring the Adventure Works Website


Exercise 1: Explore the Adventure Works Website Exercise 2: Comparing Web Forms and MVC

Exercise 3: Working with the Request Life Cycle

Logon information

Virtual machine User name Password

10264A-GEN-DEV Student Pa$$w0rd

Estimated time: 60 minutes

Lab Scenario

Module Review and Takeaways


Review Questions Real-world Issues and Scenarios

Вам также может понравиться