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

Multiple PHP errors when clicking a link..and..removing a ghost..
Hi - I have 2 problems with a new website - homeswapvacations.com, which I need help solving.

filesize problem
i use ubuntu 9.10 and i have mountet a folder from an windows

/mount/FOLDER
/mount/FOLDER/

PHP error. Need help urgently
Hi,

I am programming a php site and have a problem that i just cant find out how to fix. When

Regular expression tips or resources
Hello! I'm having some issues implementing the appropriate regex patter to eliminate unwanted charac

Socket problem
Hello,

Earlier I posted about my problem with my socket script. It took up to 100% CPU usage.

Form submissing with PHP and JQuery/Ajax
I have searched everywhere, but cannot find a solution for this... I have worked all day trying to g

how do i display data on a page from mysql
1 - do i use this code at the top of each of my page i wish to only alow access if there as been a s

Dynamically allocating the number of rows in a table based on a variable value
Hi,
I have situation here which i cannot resolve, I have a variable temp which stores the num

AutoChoosing a CSS file based on URL
Hey everyone,

I have a site that has multiple URLs and CSS files.

Based on the URL tha

DateObject and Nulls
Hi all,

I have an array mapped to a value object. One of the items in the array is a PHP Date

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