473,382 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Log Button Clicks?

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
Nov 19 '05 #1
2 1522

"S. Justin Gengo" <sjgengo@[no_spam_please]aboutfortunate.com> wrote in
message news:%2****************@tk2msftngp13.phx.gbl...
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
Nov 19 '05 #2
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
"vMike" <Mi****************@noYandZ.geZwaYrrenZ.com> wrote in message
news:Os*************@bignews1.bellsouth.net...

"S. Justin Gengo" <sjgengo@[no_spam_please]aboutfortunate.com> wrote in
message news:%2****************@tk2msftngp13.phx.gbl...
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

Nov 19 '05 #3

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

Similar topics

3
by: mitsura | last post by:
Hi, I have included a small listing. The test program opens a panel and show a bitmap. What I want is to when the mouse is over the bitmap panel, I want to trap the left mouse click. The...
8
by: Shimon Sim | last post by:
Hi, Every time I write ASP.NET application I have the same problem - Back button on the browser is my enemy. I have to tell client avoid using "Back" button and if you use it make sure to refresh...
3
by: Penny Bond | last post by:
Hi, Any help or suggestions on this one would be gratefully appreciated: I have 2 aspx pages one is called 'Query' and the other 'Details'. Query page has a number of text boxes and drop...
13
by: James Bond | last post by:
Hello. My 80+ year old father has recently decided to get his first computer. Due to his age (and I suspect lack of playing pong as a child like I did) he lacks the manual dexterity to use a mouse...
2
by: NishSF | last post by:
Would anyone have any suggestions/javascript code so that if one clicks the Radio Button "Yes" below he has the option of selecting any of the six CheckBox below. If the user clicks on Radio Button...
1
by: Mossman | last post by:
Hello, I will discuss at a high level what is happening on an ASP.NET web page I developed a year ago in ASP.NET using Visual Studio 2003 and currently support. I have an ASP.NET web page...
5
by: Diffident | last post by:
Hello All, Most of you might be familiar with this problem i.e, viewstate is lost whenever we navigate from the one page to another. Does anyone have a remedy for this problem? On Page A, I...
1
by: rn5a | last post by:
I want to create a custom control that encapsulates a Button & a TextBox. When the Button is clicked, the user is asked a question using JavaScript confirm (which shows 2 buttons - 'OK' &...
2
by: polocar | last post by:
Hi, suppose that you have a C# form with two buttons, that are the classical "btnOk" and "btnCancel" (besides them, of course in the form there can be many other controls). When the user clicks...
3
by: gimme_this_gimme_that | last post by:
Depending upon a radio button button's setting a div is either hidden or visible. It turns out that the default view of the page requires that the div be hidden. When the user opts for the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.