Log Button Clicks?

S

S. Justin Gengo

I'm thinking of building a component that, when dropped onto a .aspx page,
will intercept all form post back button clicks (maybe even all postback
events triggered by a .net control) using the bubble event and writing to
the website log in order to record the event. I did a little bit of
searching and didn't find that anyone has built anything like this yet. But
maybe I'm using the wrong search words? Does anyone know of a component that
logs post-back event clicks of a .aspx page to the log in a way that common
log analyzers will then be able to interpret them as link clicks?

If not, does anyone know if I'll run into any file locking problems if I try
to write directly to the weblogs of a site. Otherwise I could always write
to a database or an xml file. But I was hoping to write the information in a
way that is already standardized.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
 
V

vMike

S. Justin Gengo said:
I'm thinking of building a component that, when dropped onto a .aspx page,
will intercept all form post back button clicks (maybe even all postback
events triggered by a .net control) using the bubble event and writing to
the website log in order to record the event. I did a little bit of
searching and didn't find that anyone has built anything like this yet.
But maybe I'm using the wrong search words? Does anyone know of a
component that logs post-back event clicks of a .aspx page to the log in a
way that common log analyzers will then be able to interpret them as link
clicks?

If not, does anyone know if I'll run into any file locking problems if I
try to write directly to the weblogs of a site. Otherwise I could always
write to a database or an xml file. But I was hoping to write the
information in a way that is already standardized.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
Every request for any web page goes through the global.asax file and fires
the Application_EndRequest event. In that event you could write to a log any
information about the request that is available, such as Reqeust
information, Form and Query variables and all control values. I use this
method to write to my own event log. My log is in the form of a simple txt
file using a filestream and streamwriter, but you could write to a database
file also. You can also use Application_Error to write errors to an error
log. In my case, I do not have access to the server logs as I am on a shared
server and they do not give me access to it. Hope this helps.
Mike
 
S

S. Justin Gengo

Mike,

Thanks! Now I just have to determine if my writing to the log file is going
to interfere with IIS writing to the logs. I'm hoping that IIS checks for
access, locks, writes, releases. And that if I do the same I can write to
the log myself. Then I won't have to write any custom reporting. And my
component will be standards compliant.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
 

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,995
Messages
2,570,225
Members
46,815
Latest member
treekmostly22

Latest Threads

Top