Tuesday 5 November 2013

ASP.NET Web Forms Internals: Requests, View State & Page Lifecycle

 

Introduction

 

image

 

 

image

 

 

Pre-Page Execution: Request Architecture

 

image

 

 

image

 

 

 

image

 

 

image

 

 

image

 

 

image

 

 

image

 

 

All the Managed and Native modules are configured under HttpModule of IIS

 

This is Entry type is Inherited, it means it configured under applicationHost.Config file and inherited in the Application level. If we change the order of these modules, it will be reflected into your application Web.Config file.  then this settings will be specific for our application.

image

 

 

Remove unwanted modules from Web Config file

image

 

 

Create custom Authentication modules

 

image

 

 

 

HttpModules are executed in order of  presents in WEB.CONFIG file

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

If you see the compiled page at temporary location, it will have all page which implements IhttpHandler interface and has Process Request method which will be used to call the PageHandlerFactory class.   Even PageHandlerFactory implements same IHttpHandler interface to process all the page level request.

 

image

 

 

image

 

 

image

 

 

image

 

 

 

image

 

 

 

Introducing ViewState

 

image

 

 

image

 

 

 

Demo to check Viewstate Tracking status

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

The Page Lifecycle and ViewState

 

image

 

 

 

image

 

 

image

 

 

 

image

 

 

 

image

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

image

 

 

 

image

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

image

 

 

 

 

 

 

Blogger Labels: Forms,Internals,Requests,View,State,Page,Lifecycle,Introduction,Execution,Request,Architecture,Native,modules,HttpModule,Entry,Config,Application,settings,Remove,Create,custom,Authentication,HttpModules,location,IhttpHandler,interface,method,PageHandlerFactory,ViewState,Demo,status

1 comment: