Place Ads here

Friday, July 1, 2011
















Asp.Net sample projects
Understanding of Web Application that works after it is been Deployed on the web Server.
A Web Application created in ASP.Net is deployed in IIS Server and WAS.
IIS is called as Internet Information Service
WAS is called as Windows Activation Service.



If a client Browser for first time sends a request for any Web Application to the Web Browser
this request is passed to ASP.Net worker process.
From a Virtual Directory of IIS an Application is started and Application Object is Created.

A class called as ‘ApplicationManager’ creates an Application Domain.
Application Domain is a Domain in which the Website runs.

Main work of Application Domain is to seperate Two or more Applications which are
hosted on same IIS Server.
An Application Domain is actually implemented by CLR.
CLR is called as Common Language Runtime.
It is a prime Objective of Application Domain to prevent concurrently running applications from
entering into each other's Domain.



This Application Domain creates hosting environment,
1. ‘HttpRuntime’ object.

The HttpRuntime object is used at the beginning of the ASP.NET pipeline model that processes HTTP requests.
HTTP  means Hyper Text Transfer Protocol.
The ProcessRequest method drives all subsequent ASP.NET Web processing.



HttpRuntime ObjectWeb Developers  can use the HttpRuntime class properties to find out information about the current Application Domain for getting information.


Once the hosting environment is created, the other important  ASP.NET objects such as  ‘HttpContext’ ,
‘HttpRequest’ and ‘HttpResponse’ objects are created.



HttpContext Object
The HttpContext object in the System.Web namespace encapsulates all of the information related to one request and allows you to access that information within or outside of the actual aspx page that is being processed.


HttpRequest Object
The HttpRequest object  can be used by a client to send an arbitrary HTTP request.
HttpRequest is basically Microsoft XMLHTTP request.
It is also used to receive the response, and have that response parsed by the Microsoft XML Document Object Model.
This object is integrated with MicrosoftXML to support sending the request body directly from,
and parsing the response directly into, the MSXML DOM objects.

HttpResponse Object
With the XMLHttpRequest object you can update parts of a web page, without reloading the whole page.
With the XMLHttpRequest object we Developers can
•Send data to a server.
•Modify a web page without reloading the page.
•Request data from a server after the page has loaded.
•Receive data from a server after the page has loaded.



Once all the  ASP.NET objects are created, ‘HttpApplication’ object is created to serve the request.
If  you have a ‘global.asax’ file in your system, then the object of the ‘global.asax’ file will be created.
Global.asax file contains Event Handlers to respond to events such as starting of an ASP.Net Web Application for the first time.
The first time an ASP.NET page is attached to an application, a new instance of ‘HttpApplication’ is created.
The HttpApplication object is then assigned to the core ASP.NET objects to process the page.
HttpApplication then starts processing the request by HTTP module events, handlers and page events.

No comments:

Post a Comment