473,949 Members | 31,411 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help on HTTPModules

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?

--
--
Thanks,

Arvind
Nov 19 '05 #1
9 1130
You may create a custon Page class. Like

public class MyPage : Page
{..}

and then override some methods, like RaisePostBackEv ent... You must
inherit all your forms from MyPage then.

If you want to know wich method was called.. I think the unique
solution is to use NLog or other solution :S

Juan C. Olivares
www.juancri.com

Nov 19 '05 #2
Erm let me see.

You are asking if there is a method which does not involve you placing code
all over your application but which will log all clicks, all methods and all
paraments passesd.

Short answer is NO.

Can you arrange for a central log : Yes
Can you log each method with parameter values passed : Yes, Edit every
method.
Can you tell who's using the app : Provided you are not using anonymous
login : Yes
Can you log whenever an object is instantiated : Yes, add code to do so.

There is no short solution to this question, only one other question.

Why do you need this level of logging ?

--
Best Regards

The Inimitable Mr Newbie º¿º

"Arvind R" <arvind r@erivasystems. com> wrote in message
news:eC******** ******@tk2msftn gp13.phx.gbl...
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?

--
--
Thanks,

Arvind

Nov 19 '05 #3
erm not so fast ,

look around for resources on .NET profiling
i'm not so sure its really worth the effort but it is doable.


"Mr Newbie" <he**@now.com > wrote in message
news:uB******** ******@TK2MSFTN GP11.phx.gbl...
Erm let me see.

You are asking if there is a method which does not involve you placing code all over your application but which will log all clicks, all methods and all paraments passesd.

Short answer is NO.

Can you arrange for a central log : Yes
Can you log each method with parameter values passed : Yes, Edit every
method.
Can you tell who's using the app : Provided you are not using anonymous
login : Yes
Can you log whenever an object is instantiated : Yes, add code to do so.

There is no short solution to this question, only one other question.

Why do you need this level of logging ?

--
Best Regards

The Inimitable Mr Newbie º¿º

"Arvind R" <arvind r@erivasystems. com> wrote in message
news:eC******** ******@tk2msftn gp13.phx.gbl...
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?

--
--
Thanks,

Arvind


Nov 19 '05 #4
We need our application to be tracked.infact this is a commercial
application and we need to keep trace of the users and what they purchase
for initial period.


--
--
Thanks,

Arvind
"Mr Newbie" <he**@now.com > wrote in message
news:uB******** ******@TK2MSFTN GP11.phx.gbl...
Erm let me see.

You are asking if there is a method which does not involve you placing
code all over your application but which will log all clicks, all methods
and all paraments passesd.

Short answer is NO.

Can you arrange for a central log : Yes
Can you log each method with parameter values passed : Yes, Edit every
method.
Can you tell who's using the app : Provided you are not using anonymous
login : Yes
Can you log whenever an object is instantiated : Yes, add code to do so.

There is no short solution to this question, only one other question.

Why do you need this level of logging ?

--
Best Regards

The Inimitable Mr Newbie º¿º

"Arvind R" <arvind r@erivasystems. com> wrote in message
news:eC******** ******@tk2msftn gp13.phx.gbl...
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?

--
--
Thanks,

Arvind


Nov 19 '05 #5
to put in more simple terms.

i want to track my users on what buttons they click and what screens they
use in an sequential order.

coz we are getting few complaints from the customers on application goin to
error pages.which we are not able to figure out how its happening and under
what circumstances with our test team.

so if we have the log mechanism in place will it solve our purpose?

Any ideas on this?

--
--
Thanks,

Arvind
"Mr Newbie" <he**@now.com > wrote in message
news:uB******** ******@TK2MSFTN GP11.phx.gbl...
Erm let me see.

You are asking if there is a method which does not involve you placing
code all over your application but which will log all clicks, all methods
and all paraments passesd.

Short answer is NO.

Can you arrange for a central log : Yes
Can you log each method with parameter values passed : Yes, Edit every
method.
Can you tell who's using the app : Provided you are not using anonymous
login : Yes
Can you log whenever an object is instantiated : Yes, add code to do so.

There is no short solution to this question, only one other question.

Why do you need this level of logging ?

--
Best Regards

The Inimitable Mr Newbie º¿º

"Arvind R" <arvind r@erivasystems. com> wrote in message
news:eC******** ******@tk2msftn gp13.phx.gbl...
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?

--
--
Thanks,

Arvind


Nov 19 '05 #6
I had a similar problem with Lotus Domino when I was coding commercial sites
about four years ago. I had to retrofit the application with logging, but it
was not too bad really, the information was not as well used as I had hoped
for and I felt as if I had made significant effort for little reward.

My suggestions is that you ask for a report on how this information will be
used to better help you to design the logging system and this will
crystalise their thinking regarding the same.

If it can be justified, then do it, if not then maybe they will decide not
to ask you for the effort and spend the money.

If your a contractor, then what are you waiting for, its money in your
pocket and who cares if you think its a good idea or not.

--
Best Regards

The Inimitable Mr Newbie º¿º

"Arvind R" <arvind r@erivasystems. com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
to put in more simple terms.

i want to track my users on what buttons they click and what screens they
use in an sequential order.

coz we are getting few complaints from the customers on application goin
to error pages.which we are not able to figure out how its happening and
under what circumstances with our test team.

so if we have the log mechanism in place will it solve our purpose?

Any ideas on this?

--
--
Thanks,

Arvind
"Mr Newbie" <he**@now.com > wrote in message
news:uB******** ******@TK2MSFTN GP11.phx.gbl...
Erm let me see.

You are asking if there is a method which does not involve you placing
code all over your application but which will log all clicks, all methods
and all paraments passesd.

Short answer is NO.

Can you arrange for a central log : Yes
Can you log each method with parameter values passed : Yes, Edit every
method.
Can you tell who's using the app : Provided you are not using anonymous
login : Yes
Can you log whenever an object is instantiated : Yes, add code to do so.

There is no short solution to this question, only one other question.

Why do you need this level of logging ?

--
Best Regards

The Inimitable Mr Newbie º¿º

"Arvind R" <arvind r@erivasystems. com> wrote in message
news:eC******** ******@tk2msftn gp13.phx.gbl...
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?

--
--
Thanks,

Arvind



Nov 19 '05 #7
We are doin the reengineering work for an existing web portal and done
several changes to the existing design/structure.

now that the customers are complaining of the errors which we are suppose to
handle it.

so i thought instead of waiting for them to send me the error details. i
shall probably put a log mechanism so that i can see that straight away
where and what went wrong.

overall its gonna be my effort and time which is to be spent anyway.
the log file could contain the simple date showing

page.aspx
username
password
Clicked login button
taken to this page.aspx
selected this menu from dropdown
clicked cancel
clicked submit button
taken to this page.aspx
clicked pay by creditcard
etc.
this is for the particular user on the particular time.basically there will
be lots of log files stored in the server for further reference.

right now ive decided not to complicate with involvinf all the
methods/stored procedures etc/
so do u think this can be done ?
i want to know about more on this.pls write me on this on how to go about if
possible

that will be a great help for me,.


--
--
Thanks,

Arvind
"Mr Newbie" <he**@now.com > wrote in message
news:eH******** ******@TK2MSFTN GP12.phx.gbl...
I had a similar problem with Lotus Domino when I was coding commercial
sites about four years ago. I had to retrofit the application with logging,
but it was not too bad really, the information was not as well used as I
had hoped for and I felt as if I had made significant effort for little
reward.

My suggestions is that you ask for a report on how this information will
be used to better help you to design the logging system and this will
crystalise their thinking regarding the same.

If it can be justified, then do it, if not then maybe they will decide not
to ask you for the effort and spend the money.

If your a contractor, then what are you waiting for, its money in your
pocket and who cares if you think its a good idea or not.

--
Best Regards

The Inimitable Mr Newbie º¿º

"Arvind R" <arvind r@erivasystems. com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
to put in more simple terms.

i want to track my users on what buttons they click and what screens they
use in an sequential order.

coz we are getting few complaints from the customers on application goin
to error pages.which we are not able to figure out how its happening and
under what circumstances with our test team.

so if we have the log mechanism in place will it solve our purpose?

Any ideas on this?

--
--
Thanks,

Arvind
"Mr Newbie" <he**@now.com > wrote in message
news:uB******** ******@TK2MSFTN GP11.phx.gbl...
Erm let me see.

You are asking if there is a method which does not involve you placing
code all over your application but which will log all clicks, all
methods and all paraments passesd.

Short answer is NO.

Can you arrange for a central log : Yes
Can you log each method with parameter values passed : Yes, Edit every
method.
Can you tell who's using the app : Provided you are not using anonymous
login : Yes
Can you log whenever an object is instantiated : Yes, add code to do so.

There is no short solution to this question, only one other question.

Why do you need this level of logging ?

--
Best Regards

The Inimitable Mr Newbie º¿º

"Arvind R" <arvind r@erivasystems. com> wrote in message
news:eC******** ******@tk2msftn gp13.phx.gbl...
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?

--
--
Thanks,

Arvind



Nov 19 '05 #8
Absolutely. It is probably best to write to an SQL Database or the Systems
Event log. You can look in the web for examples of writing to the event log.

--
Best Regards

The Inimitable Mr Newbie º¿º
"Arvind R" <arvind r@erivasystems. com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
We are doin the reengineering work for an existing web portal and done
several changes to the existing design/structure.

now that the customers are complaining of the errors which we are suppose
to handle it.

so i thought instead of waiting for them to send me the error details. i
shall probably put a log mechanism so that i can see that straight away
where and what went wrong.

overall its gonna be my effort and time which is to be spent anyway.
the log file could contain the simple date showing

page.aspx
username
password
Clicked login button
taken to this page.aspx
selected this menu from dropdown
clicked cancel
clicked submit button
taken to this page.aspx
clicked pay by creditcard
etc.
this is for the particular user on the particular time.basically there
will be lots of log files stored in the server for further reference.

right now ive decided not to complicate with involvinf all the
methods/stored procedures etc/
so do u think this can be done ?
i want to know about more on this.pls write me on this on how to go about
if possible

that will be a great help for me,.


--
--
Thanks,

Arvind
"Mr Newbie" <he**@now.com > wrote in message
news:eH******** ******@TK2MSFTN GP12.phx.gbl...
I had a similar problem with Lotus Domino when I was coding commercial
sites about four years ago. I had to retrofit the application with
logging, but it was not too bad really, the information was not as well
used as I had hoped for and I felt as if I had made significant effort for
little reward.

My suggestions is that you ask for a report on how this information will
be used to better help you to design the logging system and this will
crystalise their thinking regarding the same.

If it can be justified, then do it, if not then maybe they will decide
not to ask you for the effort and spend the money.

If your a contractor, then what are you waiting for, its money in your
pocket and who cares if you think its a good idea or not.

--
Best Regards

The Inimitable Mr Newbie º¿º

"Arvind R" <arvind r@erivasystems. com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
to put in more simple terms.

i want to track my users on what buttons they click and what screens
they use in an sequential order.

coz we are getting few complaints from the customers on application goin
to error pages.which we are not able to figure out how its happening and
under what circumstances with our test team.

so if we have the log mechanism in place will it solve our purpose?

Any ideas on this?

--
--
Thanks,

Arvind
"Mr Newbie" <he**@now.com > wrote in message
news:uB******** ******@TK2MSFTN GP11.phx.gbl...
Erm let me see.

You are asking if there is a method which does not involve you placing
code all over your application but which will log all clicks, all
methods and all paraments passesd.

Short answer is NO.

Can you arrange for a central log : Yes
Can you log each method with parameter values passed : Yes, Edit every
method.
Can you tell who's using the app : Provided you are not using anonymous
login : Yes
Can you log whenever an object is instantiated : Yes, add code to do
so.

There is no short solution to this question, only one other question.

Why do you need this level of logging ?

--
Best Regards

The Inimitable Mr Newbie º¿º

"Arvind R" <arvind r@erivasystems. com> wrote in message
news:eC******** ******@tk2msftn gp13.phx.gbl...
> 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?
>
> --
> --
> Thanks,
>
> Arvind
>



Nov 19 '05 #9
do you have any reference for me to share?

ive searched thru google without great success :-(
--
--
Thanks,

Arvind
"Mr Newbie" <he**@now.com > wrote in message
news:Ow******** ******@TK2MSFTN GP12.phx.gbl...
Absolutely. It is probably best to write to an SQL Database or the Systems
Event log. You can look in the web for examples of writing to the event
log.

--
Best Regards

The Inimitable Mr Newbie º¿º
"Arvind R" <arvind r@erivasystems. com> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
We are doin the reengineering work for an existing web portal and done
several changes to the existing design/structure.

now that the customers are complaining of the errors which we are suppose
to handle it.

so i thought instead of waiting for them to send me the error details. i
shall probably put a log mechanism so that i can see that straight away
where and what went wrong.

overall its gonna be my effort and time which is to be spent anyway.
the log file could contain the simple date showing

page.aspx
username
password
Clicked login button
taken to this page.aspx
selected this menu from dropdown
clicked cancel
clicked submit button
taken to this page.aspx
clicked pay by creditcard
etc.
this is for the particular user on the particular time.basically there
will be lots of log files stored in the server for further reference.

right now ive decided not to complicate with involvinf all the
methods/stored procedures etc/
so do u think this can be done ?
i want to know about more on this.pls write me on this on how to go about
if possible

that will be a great help for me,.


--
--
Thanks,

Arvind
"Mr Newbie" <he**@now.com > wrote in message
news:eH******** ******@TK2MSFTN GP12.phx.gbl...
I had a similar problem with Lotus Domino when I was coding commercial
sites about four years ago. I had to retrofit the application with
logging, but it was not too bad really, the information was not as well
used as I had hoped for and I felt as if I had made significant effort
for little reward.

My suggestions is that you ask for a report on how this information will
be used to better help you to design the logging system and this will
crystalise their thinking regarding the same.

If it can be justified, then do it, if not then maybe they will decide
not to ask you for the effort and spend the money.

If your a contractor, then what are you waiting for, its money in your
pocket and who cares if you think its a good idea or not.

--
Best Regards

The Inimitable Mr Newbie º¿º

"Arvind R" <arvind r@erivasystems. com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
to put in more simple terms.

i want to track my users on what buttons they click and what screens
they use in an sequential order.

coz we are getting few complaints from the customers on application
goin to error pages.which we are not able to figure out how its
happening and under what circumstances with our test team.

so if we have the log mechanism in place will it solve our purpose?

Any ideas on this?

--
--
Thanks,

Arvind
"Mr Newbie" <he**@now.com > wrote in message
news:uB******** ******@TK2MSFTN GP11.phx.gbl...
> Erm let me see.
>
> You are asking if there is a method which does not involve you placing
> code all over your application but which will log all clicks, all
> methods and all paraments passesd.
>
> Short answer is NO.
>
> Can you arrange for a central log : Yes
> Can you log each method with parameter values passed : Yes, Edit every
> method.
> Can you tell who's using the app : Provided you are not using
> anonymous login : Yes
> Can you log whenever an object is instantiated : Yes, add code to do
> so.
>
> There is no short solution to this question, only one other question.
>
> Why do you need this level of logging ?
>
> --
> Best Regards
>
> The Inimitable Mr Newbie º¿º
>
>
>
> "Arvind R" <arvind r@erivasystems. com> wrote in message
> news:eC******** ******@tk2msftn gp13.phx.gbl...
>> 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?
>>
>> --
>> --
>> Thanks,
>>
>> Arvind
>>
>
>



Nov 19 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1560
by: Bogdan Fiedur | last post by:
Hi Everybody, When we defined this section in web.config in the main root, <httpModules> <add name="ApplicationModule" type="Myspace.Community.ApplicationModule,Community" /> </httpModules
11
1571
by: Markus Kling | last post by:
Hi, I have a web application that has two sub-applications. The root application defines two httpModules which shall not be loaded for the subapplications. I tried to achieve this by adding <httpmodules> <clear /> </httpmodules>
0
1185
by: tshad | last post by:
I noticed in my Http modules that all the BeginRequests are handled for each Module before the EndRequests is handled (at least that seems to be the case). I have 2 HttpModules each with BeginRequests and EndRequests. <httpModules> <add type="NFission.WebControls.ScrollKeeperModule,NFission.WebControls.ScrollKeeper" name="ScollKeeperModule" />
3
5742
by: walter | last post by:
Hi , I thought it's simple ,but end up come here for help(as lots of other times). --I have several HttpModule added in the root thru web.config, but I want to remove some and add some new ones in one of sub folder. It is not fancy virtual folder, but simple sub folder. After create a web.config in the subfolder, <system.web> <httpModules> <clear /> </httpModules> </system.web>
1
3329
by: Anonieko | last post by:
Global.asax? Use HttpModules Instead! In a previous post, I talked about HttpHandlers - an underused but incredibly useful feature of ASP.NET. Today I want to talk about HttpModules, which are probably more common than HttpHandlers, but could still stand to be advertised a bit more. HttpModules are incredibly easy to explain, so this will hopefully be a short-ish post. Simply put, HttpModules are portable versions of the global.asax....
1
1934
by: Asela Gunawardena | last post by:
Hi all, we have a webservice as a seperate virtual directory placed under a Web Site named GRSCS in IIS. Both are .NET applications and uses MS application blocks as the data layer. Recently an http module was included in the root site which is GRSCS and the webservice has not functioned ever since. the service starts working when u comment the httpmodule section in the web.config file of the main (root application) which is GRSCS. Is...
2
20859
by: AnalogKid17 | last post by:
Keywords: ASP.NET app with VS2005 running on Win2003 with IIS6, and SQL2000 on a WinXP Box I've betting the following for days... it's driving me insane: Server Error in '/' Application. Security Exception Description: The application attempted to perform an operation not
2
2416
by: Mikael Syska | last post by:
Hi, Google gives alot of hits on httpmodules but I can't seem to find any useful on my problem ... I have a site where I'm using my own auth system ... ( guess it could be better but its work, maybe I will make a new one later, or use the build -in ) But to my problem ... I have a Admin area, but that users dont have
3
2142
by: =?Utf-8?B?Tm9yZW1hYw==?= | last post by:
Hi, We are writing a Web SSO service for all of our websites through Forms Authentication. We also want to provide our websites with the ability to protect different parts of their website and redirect to different registration pages. We are also required to centrally audit authorization failures to a database only the Web SSO people can see. We are using .NET 2.0 but need solutions that will use the same code run on our clients...
1
3223
by: Samuel R. Neff | last post by:
We have a problem with Web.config inheritance in two of our applications. We have an old app which is poorly written and must be in the root of the server. We have a newer app which runs from a virtual directory. The apps are not related. Old app web.config has: <httpModules> <add name="a" type="foo.a, foo" /> <add name="b" type="bar.b, bar" />
0
10171
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9991
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11594
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9903
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8265
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6130
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6351
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4957
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4547
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.