post your comment   print   send to a friend
Rate:  75% | Views: 1409
Question categories:  ASP

What is the process-flow for ASP.Net?

The following is the process-flow for ASP.NET:

  1. User requests an ASPx page in his/her browser
  2. An HTTP request is sent to it.
  3. The xspisapi.dll isapi filter intercepts the request and passes the request on to the XSP worker process (xspwp.exe)
  4. Xspwp takes care of handing the request to the appropriate HTTPModules and finally an HTTPHandler as defined in the configuration files
  5. The ASPX page is read from the HD or cache and server code is loaded into memory and executed
  6. The server side code outputs normal HTML which is handed back through the chain of modules and eventually to IIS, which sends the response back to the user's browser
  7. If the user clicks or otherwise acts on an HTML element (say, a textbox) that has a server side event handler, the form is posted back to the server with hidden form fields containing information as to what control and event occurred. Some controls do not automatically post by default, but wait for a button_click event to post. (This is configurable by the developer.)
  8. The ASPx page is again loaded into memory using the same sequence of events as before, but this time ASP.net reads in the hidden form field data and automatically triggers the appropriate _OnChange, OnClick and other appropriate event handlers.
  9. Resulting HTML is sent to the browser.
  10. The process repeats in a continual "Post Back" cycle.


Definition of HTTP Modules
HTTP modules are a logical replacement for ISAPI filters. Modules are a class that can participate in every web request. This is appropriate for code that should run on every request, such as caching, authentication or state management.

Definition of HTTP Handlers
HTTP Handlers provide the end point in the processing of a web request and are equivalent to ISAPI Extensions today. For example, many handlers can be involved in the request for an ASPX page, but only 1 handler is invoked. The handler runs after the HTTP modules have run. Which handler is invoked is determined by configuration settings in the config.web file. Handlers are assigned to handle requests based on the extension of the page requested.

Customer Feedback
Rate:  75% | Views: 1409 | Please Rate:  
 
If you have other comments or ideas for future technical tips, please type them here:

Email: (optional)

Comments: (optional)

 Dedicated Server | Web Hosting    Back to serch results
Browse the Base
Knowledge Base
Web Design
  Do It Yourself
    ASP
Messages
Private Area
 
Ask
in Private
   
Personal
Folder
 
Related Questions
 
1. How can I display all of the contents of a single-dimension array?
 
2. Does ASP.Net still recognize the global.asa file?
 
3. Is it possible to run client-side .NET code within a browser?
 
4. What happened to date() and time()?
 
5. How do I display data on a web page using arrays instead of Do...While...MoveNext...???
 
Home Browse Search Ask in Private Personal Folder   Help
powered by web hosting 
  Logged as: Guest