counter for link clicker

  • Thread starter Thread starter sweetpotatop
  • Start date Start date
S

sweetpotatop

Hi,

I wonder if there is a way to keep the number of click to a link (URL)
in aspnet.

Thanks in advance. Your advice is greatly appreciated.
 
(e-mail address removed) wrote in @g49g2000cwa.googlegroups.com:
Hi,

I wonder if there is a way to keep the number of click to a link (URL)
in aspnet.

Use a database.
 
What I usually do is have an onclick client script handler that feeds the
info on the querystring to a separate asp.Net page (or ashx) that updates the
database. The page doesn't return anything, it simply updates the database
based on what I've put on its querystring.
Peter
 
Greatly simplified code:

var bug = new Image();
var theurl='thispage.asp';
bug.src = 'logtodb.aspx?url=' + theurl;
 

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

Back
Top