answersLogoWhite

0

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

Still curious? Ask our experts.

Chat with our AI personalities

BlakeBlake
As your older brother, I've been where you are—maybe not exactly, but close enough.
Chat with Blake
CoachCoach
Success isn't just about winning—it's about vision, patience, and playing the long game.
Chat with Coach
MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine

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.