.NETGURU
HTTp Module vs Global.asax
Messages   Related Types
This message was discovered on ASPFriends.com 'aspnghttphandlers' list.


Muralidhar R Gondipalle
Hello All,
I have a doubt about when to use Http Module as against
global.asax. I understand that HttpModule is invoked before
global.asax. And also in web.config, why does the tab <add> tab in
<httpmodules> does not have a "path" like the one for <httphandlers>.

Thanks in advance,
Muralidhar

--
**********************************************************************
To be without some of the things you want is an indispensable part of
happiness.
**********************************************************************
Reply to this message...
 
    
ToddC@match.com
Hello All,
I have a doubt about when to use Http Module as against
global.asax. I understand that HttpModule is invoked before
global.asax. And also in web.config, why does the tab <add> tab in
<httpmodules> does not have a "path" like the one for <httphandlers>.

Thanks in advance,
Muralidhar

--
**********************************************************************
To be without some of the things you want is an indispensable part of
happiness.
**********************************************************************
Reply to this message...
 
    
muralidhar@magnaquest.net
Thanx for the reply. I am not sure what additional events a HttpModule
can listen to. The only parameter to the init function is a
HttpApplication object and Global.asax is anyway derived from
HttpApplication. So I do not think it can listen to more events than
Global.asax

Thanx,
Murali
wrote in message news:<661883@aspnghttphandlers>... > > HttpModules are
more like ISAPI Filters in that they get access to each > request
regardless of the target file extension. Your confusion with the >
Global.asax is understandable. Both of these classes "intercept" the >
request events, but the HttpModule "listens" for more events than the >
Global.asax, in addition to getting instantiated earlier than the >
Global.asax. > > HttpHandlers on the other hand are more like ISAPI
Extensions. This is > actually how ASP.NET "works" by separating *.aspx
--> Web form, *.ascx --> > Web User Control etc. > > So to answer your
question, you would use an HttpHandler when you wanted to > create a new
type of "Application", while you would use a HttpModule to > create more
of a filter or Request modifier. > > Does that help? > > tc > >
-----Original Message----- > From: Muralidhar R Gondipalle
[mailto:Click here to reveal e-mail address] > Sent: Saturday, May 25, 2002 2:48
AM > To: aspnghttphandlers > Subject: [aspnghttphandlers] HTTp Module vs
Global.asax > > -- Moved from [aspngcommunity] to [aspnghttphandlers] by
Clint Barton > -- > > This is a multi-part message in MIME format. >
--------------63BE2A8CF1AE874DAEE82FE2 > Content-Type: text/plain;
charset=us-ascii > Content-Transfer-Encoding: 7bit > > Hello All, > I
have a doubt about when to use Http Module as against > global.asax. I
understand that HttpModule is invoked before > global.asax. And also in
web.config, why does the tab tab in > does not have a "path" like the
one for . > > Thanks in advance, > Muralidhar > > -- >
********************************************************************** >
To be without some of the things you want is an indispensable part of >
happiness. >
********************************************************************** >
> > --------------63BE2A8CF1AE874DAEE82FE2 > Content-Type: text/x-vcard;
charset=us-ascii; > name="muralidhar.vcf" > Content-Transfer-Encoding:
7bit > Content-Description: Card for Muralidhar R Gondipalle >
Content-Disposition: attachment; > filename="muralidhar.vcf" > >
begin:vcard > n:Gondipalle;Muralidhar Reddy > tel;fax:4754000 >
tel;home:3704722 > tel;work:4750220, 4750975, 6503845 >
x-mozilla-html:FALSE > url:http://magnaquest.net > org:MagnaQuest
Solutions > version:2.1 > email;internet:Click here to reveal e-mail address >
title:Systems Analyst > adr;quoted-printable:;;4-1-1240 King Koti >
Road,=0D=0AAbids;Hyderabad;A.P.;500001;India > fn:Muralidhar > end:vcard
> > --------------63BE2A8CF1AE874DAEE82FE2-- > > | [aspnghttphandlers]
member Click here to reveal e-mail address = YOUR ID > |
http://www.asplists.com/asplists/aspnghttphandlers.asp = JOIN/QUIT > |
http://www.asplists.com/search = SEARCH Archives > >
Reply to this message...
 
    
ToddC@match.com
Doh!!!

You are correct. I was looking at the Global.asax and looked at the =
event
handlers that VS.NET puts in by default. Sorry if I mislead anyone.

That does bring an interesting point, since Global.asax Inherits from
HttpApplication, we can override the standard methods, or add some new =
ones.
You can't do that with an HttpModule...

tc

-----Original Message-----
From: Click here to reveal e-mail address [mailto:Click here to reveal e-mail address]=20
Sent: Thursday, May 30, 2002 1:47 AM
To: aspnghttphandlers
Subject: [aspnghttphandlers] Re: HTTp Module vs Global.asax

Thanx for the reply.=A0 I am not sure what additional events a =
HttpModule can
listen to.=A0 The only parameter to the init function is a =
HttpApplication
object and Global.asax is anyway derived from HttpApplication.=A0 So I =
do not
think it can listen to more events than Global.asax=20
Thanx,=20
Murali=20
wrote in message news:<661883@aspnghttphandlers>... > > HttpModules are =
more
like ISAPI Filters in that they get access to each > request regardless =
of
the target file extension. Your confusion with the > Global.asax is
understandable. Both of these classes "intercept" the > request events, =
but
the HttpModule "listens" for more events than the > Global.asax, in =
addition
to getting instantiated earlier than the > Global.asax. > > =
HttpHandlers on
the other hand are more like ISAPI Extensions. This is > actually how
ASP.NET "works" by separating *.aspx --> Web form, *.ascx --> > Web =
User
Control etc. > > So to answer your question, you would use an =
HttpHandler
when you wanted to > create a new type of "Application", while you =
would use
a HttpModule to > create more of a filter or Request modifier. > > Does =
that
help? > > tc > > -----Original Message----- > From: Muralidhar R =
Gondipalle
[mailto:Click here to reveal e-mail address] > Sent: Saturday, May 25, 2002 2:48 =
AM >
To: aspnghttphandlers > Subject: [aspnghttphandlers] HTTp Module vs
Global.asax > > -- Moved from [aspngcommunity] to [aspnghttphandlers] =
by
Clint Barton >=A0-- > > This is a multi-part message in MIME format. >
--------------63BE2A8CF1AE874DAEE82FE2 > Content-Type: text/plain;
charset=3Dus-ascii > Content-Transfer-Encoding: 7bit > > Hello All, > I =
have a
doubt about when to use Http Module as against > global.asax. I =
understand
that HttpModule is invoked before > global.asax. And also in =
web.config, why
does the tab=A0tab in >=A0does not have a "path" like the one for=A0. > =
> Thanks
in advance, > Muralidhar > > -- >
********************************************************************** =
> To
be without some of the things you want is an indispensable part of >
happiness. >
********************************************************************** =
> > >
--------------63BE2A8CF1AE874DAEE82FE2 > Content-Type: text/x-vcard;
charset=3Dus-ascii; > name=3D"muralidhar.vcf" > =
Content-Transfer-Encoding: 7bit
> Content-Description: Card for Muralidhar R Gondipalle >
Content-Disposition: attachment; > filename=3D"muralidhar.vcf" > > =
begin:vcard
> n:Gondipalle;Muralidhar Reddy > tel;fax:4754000 > tel;home:3704722 >
tel;work:4750220, 4750975, 6503845 > x-mozilla-html:FALSE >
url:http://magnaquest.net > org:MagnaQuest Solutions > version:2.1 >
email;internet:Click here to reveal e-mail address > title:Systems Analyst >
adr;quoted-printable:;;4-1-1240 King Koti >
Road,=3D0D=3D0AAbids;Hyderabad;A.P.;500001;India > fn:Muralidhar > =
end:vcard > >
--------------63BE2A8CF1AE874DAEE82FE2-- > > | [aspnghttphandlers] =
member
Click here to reveal e-mail address =3D YOUR ID > |
http://www.asplists.com/asplists/aspnghttphandlers.asp =3D JOIN/QUIT > =
|
http://www.asplists.com/search =3D SEARCH Archives > > | =
[aspnghttphandlers]
member Click here to reveal e-mail address =3D YOUR ID
| http://www.asplists.com/asplists/aspnghttphandlers.asp =3D JOIN/QUIT
| http://www.asplists.com/search =3D SEARCH Archives

Reply to this message...
 
 
System.Web.HttpApplication




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification