answersLogoWhite

0


Best Answer

HTTP Modules like HTTP handlers are used to extend the HTTP pipeline. These are basically classes implementing the IHTTPModule Interface. These modules are used to process the incoming requests. Hence they can perform certain operations based on the requests and further allow them to pass through the pipeline.

For example we can write HTTP Modules to implement security. One can register the incoming requests for certain events with the help of such modules. These are listeda s below: -

Event
When It's Called

BeginRequest
Before request processing starts

AuthenticateRequest
To authenticate client

AuthorizeRequest
To perform access check

ResolveRequestCache
To get response from cache

AcquireRequestState
To load session state

PreRequestHandlerExecute
Before request sent to handler

PostRequestHandlerExecute
After request sent to handler

ReleaseRequestState
To store session state

UpdateRequestCache
To update response cache

EndRequest
After processing ends

PreSendRequestHeaders
Before buffered response headers sent

PreSendRequestContent
Before buffered response body sent

Application_OnStart
This event is raised when the very first request arrives to the Web application.

Application_OnEnd
This event is raised just before the application is going to terminate.

Session_OnStart
This event is raised for the very first request of the user's session.

Session_OnEnd
This event is raised when the session is abandoned or expired.

User Avatar

Wiki User

βˆ™ 15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why should one write their own HTTP module in asp net?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What does a Hindu Temple look like?

Go here: http://www.sgpc.net/photo-gallery/index2.asp


What is the default scripting language in ASP?

Default scripting language in ASP is VB Script


How asp differs from client side scripting technologies?

ASP runs on the server. This means that ASP has access to thing like databases and file read/write that a client side script traditionally does not have. ASP doesn't rely on the code being intact in your users browser. Instead, it runs on the server, and returns the output. You can use the developer tools adjust the client side code. That makes it inherently insecure. Add to that the fact that ASP, like JSP, PHP, or any of a dozen other client side languages, is a complete language, with all the abilities of your traditional programming languages. JavaScript is limited by it's having to conform to the browsers security rules.


Do you have to use HTML programming with asp hosting?

No, HTML programming is used for HTML websites that stay the same. ASP hosting allows for dynamic websites that change the way the viewer experiences them--and it uses a different type of programming. ==== Here is an example of what I mean... ASP page, called: hw.asp; contains the following code: <% Response.Write("<p>Hello, world</p>") %> NOTE: ASP/Active Server Pages code is surrounded by a open and close pair of: <%...ASP code goes inside here...%> Now, when the user types into their browser the URL for that page... http://www.somewebaddress.com/hw.asp ...the web server computer will execute the ASP code on the server itself; then, return back to the client browser the resulting HTML codes...; so, this is what the user will see inside of their browser whenever they chose: View Source... <p>Hello, world</p> NOTE: They do NOT get to see the ASP code: <%...%> inside of their web browser at all. This means that because ASP code is executed entirely server side; thus, it really doesn't matter what platform calls the page...Linux/Max/Windows...none of these platforms will need to understand ASP code...instead, they only need to understand HTML which is being returned back to their web browser software that called the ASP page: (.asp).


How do you debug a web service?

Debugging XML Web Service created with ASP .Net is similar to debugging an ASP .Net web Application.

Related questions

Are there any spices you should avoild while pregnant?

http://www.bellaonline.com/articles/art24325.asp


What is a request object in asp technology?

The ASP Request object is used to get information from the user. From http://www.w3schools.com/ASP/asp_ref_request.asp


How do you spell 20-90 in Spanish?

http://www.donquijote.org/spanishlanguage/numbers/numbers1.asp should help you! Buena Suerte!


What is teaching process?

http://www.pacificoaks.edu/pages/440.asp


Write an ASP code that will display the source code of the web page in the browser window?

Write an ASP code that will dislplay the source code of the web page in the Browser window.


How do i get pregnant this month?

http://www.ovusoft.com/library/faqfertility.asp http://www.ovusoft.com/library/primer002.asp


Can you run an ASP program on Unix or Linux?

http://www.apache-asp.org/


How do you read a stock?

http://www.investopedia.com/university/stocks/stocks6.asp


Can you buy asp retention clips in united kingdom?

http://www.qtishat.com


Where to find a Picasso print Fawn with Leaves?

Try this site:* http://www.art.com/asp/display_artist-asp/_/CRID--16/Picasso.htm?ui=15540E06FDAB42C09B2E8A924880B400


How can you help Ellis Island?

Go to http://www.ellisisland.org/membership/wme_1.asp?


Where and when saregamapa auditions take place in 2008?

http://www.saregamapa.us/audition1.asp