The ASP.NET Server Model Martin Parry Developer and Platform Evangelism Group Microsoft...
-
Upload
magdalen-woods -
Category
Documents
-
view
221 -
download
1
Transcript of The ASP.NET Server Model Martin Parry Developer and Platform Evangelism Group Microsoft...
The ASP.NET Server ModelThe ASP.NET Server Model
Martin ParryMartin Parry
Developer and Platform Evangelism GroupDeveloper and Platform Evangelism Group
MicrosoftMicrosoft
[email protected]@microsoft.com
http://www.martinparry.comhttp://www.martinparry.com
AgendaAgenda
User InterfaceUser Interface
CompilationCompilation
Application ServicesApplication Services
Server ArchitectureServer Architecture
ASP.NET ControlsASP.NET Controls
User Controls (.ascx)User Controls (.ascx)
Developed rather like a pageDeveloped rather like a page
Web ControlsWeb Controls
Override a function and emit HTML/scriptOverride a function and emit HTML/script
Compare creation/consumption experienceCompare creation/consumption experience
@OutputCache directive on User Controls@OutputCache directive on User Controls
Affects server-side cacheabilityAffects server-side cacheability
Master PagesMaster Pages
Can define the common regions of your pages in Can define the common regions of your pages in one placeone place
Insert “content placeholder” controlsInsert “content placeholder” controls
Each page consists of “content” controls that Each page consists of “content” controls that map onto the placeholdersmap onto the placeholders
Compare with User ControlsCompare with User Controls
ThemesThemes
Under ...\App_Themes\<ThemeName>Under ...\App_Themes\<ThemeName>
Can specify a .css file and/or .skin filesCan specify a .css file and/or .skin files
.skin file specifies server-side properties for controls.skin file specifies server-side properties for controls
.css can affect only client-side properties.css can affect only client-side properties
Theme is selected via page directive or configTheme is selected via page directive or config
ASP.NET User InterfaceASP.NET User Interface
ASP.NET CompilationASP.NET Compilation
Applications consist of .aspx/.ascx source files, Applications consist of .aspx/.ascx source files, plus code-behind source files (.cs or .vb)plus code-behind source files (.cs or .vb)
We can choose what to deploy...We can choose what to deploy...
All source. Code-behind source goes in App_CodeAll source. Code-behind source goes in App_Code
All binaryAll binary
Compiled pages and code-behind go in bin folderCompiled pages and code-behind go in bin folder
.aspx etc. still present but just empty markers.aspx etc. still present but just empty markers
UpdatableUpdatable
Code-behind compiled in bin folderCode-behind compiled in bin folder
.aspx etc. present in full..aspx etc. present in full.
Compilation ModelCompilation Model
Application ServicesApplication Services
Membership Role Manager Personalization
Site Navigation Database Caching
Management
Windows SQL Server Custom
Provider Model Design Pattern
SQL Express
Membership Role Manager Personalization
Site Navigation Database Caching
Management
Application ServicesApplication Services
Membership Role Manager Personalization
Site Navigation Database Caching
Management
ASP.NET 2.0 Developer StackASP.NET 2.0 Developer Stack
Membership Role Manager Personalization
Site Navigation Database Caching
Management
Membership Role Manager Personalization
Site Navigation Database Caching
Management
New ASP.NET 2.0 “Control Buckets” (Approximately 50)
ASP.NET Application ServicesASP.NET Application Services
Server ArchitectureServer Architecture
HttpHandlerHttpHandler
Request Response
IIS6 ASP.NET IntegrationIIS6 ASP.NET Integration
IIS7 ASP.NET IntegrationIIS7 ASP.NET Integration
IIS7 Managed ModulesIIS7 Managed Modules
Can use HttpModules at all pipeline stagesCan use HttpModules at all pipeline stages
Can be used with all types of contentCan be used with all types of content
Modules listed in IIS admin toolModules listed in IIS admin tool
Enabled/disabled per-applicationEnabled/disabled per-application
Access to HttpContext in HttpModuleAccess to HttpContext in HttpModule
Context data that used to be read-only can potentially Context data that used to be read-only can potentially be written tobe written to
IIS7 Managed ModuleIIS7 Managed Module
Further InformationFurther Information
http://www.asp.nethttp://www.asp.net
http://www.iis.nethttp://www.iis.net
© 2006 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only.MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.