Presentation is loading. Please wait.

Presentation is loading. Please wait.

The ASP.NET Server Model Martin Parry Developer and Platform Evangelism Group Microsoft

Similar presentations


Presentation on theme: "The ASP.NET Server Model Martin Parry Developer and Platform Evangelism Group Microsoft"— Presentation transcript:

1 The ASP.NET Server Model Martin Parry Developer and Platform Evangelism Group Microsoft martin.parry@microsoft.com http://www.martinparry.com

2 Agenda User Interface Compilation Application Services Server Architecture

3 ASP.NET Controls User Controls (.ascx) Developed rather like a page Web Controls Override a function and emit HTML/script Compare creation/consumption experience @OutputCache directive on User Controls Affects server-side cacheability

4 Master Pages Can define the common regions of your pages in one place Insert “content placeholder” controls Each page consists of “content” controls that map onto the placeholders Compare with User Controls

5 Themes Under...\App_Themes\ Under...\App_Themes\ Can specify a.css file and/or.skin files.skin file specifies server-side properties for controls.css can affect only client-side properties Theme is selected via page directive or config

6 ASP.NET User Interface

7 ASP.NET Compilation Applications consist of.aspx/.ascx source files, plus code-behind source files (.cs or.vb) We can choose what to deploy... All source. Code-behind source goes in App_Code All binary Compiled pages and code-behind go in bin folder.aspx etc. still present but just empty markers Updatable Code-behind compiled in bin folder.aspx etc. present in full.

8 Compilation Model

9 Application Services MembershipRole ManagerPersonalization Site NavigationDatabase Caching Management

10 WindowsSQL ServerCustom Provider Model Design Pattern SQL Express MembershipRole ManagerPersonalization Site NavigationDatabase Caching Management Application Services

11 MembershipRole ManagerPersonalization Site NavigationDatabase Caching Management ASP.NET 2.0 Developer Stack

12 MembershipRole ManagerPersonalization Site NavigationDatabase Caching Management

13 MembershipRole ManagerPersonalization Site NavigationDatabase Caching Management New ASP.NET 2.0 “Control Buckets” (Approximately 50)

14 ASP.NET Application Services

15 Server Architecture HttpHandler RequestResponse

16 IIS6 ASP.NET Integration

17 IIS7 ASP.NET Integration

18 IIS7 Managed Modules Can use HttpModules at all pipeline stages Can be used with all types of content Modules listed in IIS admin tool Enabled/disabled per-application Access to HttpContext in HttpModule Context data that used to be read-only can potentially be written to

19 IIS7 Managed Module

20 Further Information http://www.asp.net http://www.iis.net

21 © 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.


Download ppt "The ASP.NET Server Model Martin Parry Developer and Platform Evangelism Group Microsoft"

Similar presentations


Ads by Google