help on httpmodles

A

Arvind R

Hi,
I need to log all info,of whoever logs into my application and what all he
clicks...and which all methods are executed and what parameters are passed.

Is there any way I can log info at a single place....a common place and so
that I dont need to put code in all methods and in all pages...

any sample apps/code for this?
 
D

Dominick Baier [DevelopMentor]

Hello Arvind,

You can put the logging code into the pipeline, e.g. when you handle the
BeginRequest or EndRequest events

you can put the code in global.asax or write a HttpModule - the difference
between the 2 approaches is packaging. A HttpModule is a .DLL that you can
be easily shared between applications.
 
A

Arvind R

Thanks a lot il look in to it and get back


shall i go for global.asax as il be using this for a single application?
 
D

Dominick Baier [DevelopMentor]

Hello Arvind,

i would write a module.

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
Thanks a lot il look in to it and get back

shall i go for global.asax as il be using this for a single
application?

Arvind
"Dominick Baier [DevelopMentor]"
<[email protected]>
wrote in message
Hello Arvind,

You can put the logging code into the pipeline, e.g. when you handle
the BeginRequest or EndRequest events

you can put the code in global.asax or write a HttpModule - the
difference between the 2 approaches is packaging. A HttpModule is a
.DLL that you can be easily shared between applications.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,898
Latest member
BlairH7607

Latest Threads

Top