How to write on database when a link is clicked?


Posted on 16th Feb 2014 07:03 pm by admin

Hi, I have a list of products in a gridview. When the link is clicked currently it takes to an external site. But now I wanted to store how many times a link is clicked? what is the best way to capture it? Currently it is a tag, I thought I will change it to asp:linkbutton, but my main problem is who to pass the parameter like the product id to the link button click event? or what other option I have? is it possible to do the database update through a javascript function (if it is possible then I will just leave the
No comments posted yet

Your Answer:

Login to answer
295 Like 20 Dislike
Previous forums Next forums
Other forums

Problem writing URL into database
How would I write this into the database?

<?php echo "http://".$_SERVER['SER

displaying unknown amount of results
I am reading a directory and getting a list of folders in the directory, I want to display the folde

Get word number x from string?
How can I use a function to loop through a string, and "have a look at" every word in the

problem with sql querry in php script
Hello guys,

What I want to do is I want to read out a csv file and then but te conent ot the

Help with page encoding issue and weird characters
I'm trying to write a screen scraper and when I pull out the lines of the html file that I'm interes

Date Format
Hi there,

I have a date format like this right now:
Sat, 17 Oct 2009 17:04:00

I ne

[RESOLVED] Socket/Port remains open after app crashes
I'm having this problem with a networked app in vb.net.

If the program exits normally the por

turning an array into a string then poping it into a db
Hi im just wondering how you get a requested array into a single string then pop it into the db so f

the problem with str_replace
$str="hahahahahahahahahahahahahaha";
$nn=1;
$str=str_replace('ha','MyGod',$str,$nn);

While Problem
i am having a problem with a while statement here is the code
Code: [Select]<?php
sess

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash