Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 check if a link has been clicked or not

Author  Topic 

akpaga
Constraint Violating Yak Guru

331 Posts

Posted - 2010-02-04 : 18:01:20
Hi friends

is there a way to check if a link on a page has been clicked
and capture the click in order to change a status field in sql server table to true.

Is there a way to accomplish this.

thanks in advance.

Sachin.Nand

2937 Posts

Posted - 2010-02-10 : 04:18:21
On the OnclientClick event of the link button provided that it is a server side link button u can set a hidden field value & check that value to set it in the database.

PBUH
Go to Top of Page

kirangentlebreeze1987
Starting Member

14 Posts

Posted - 2010-02-12 : 03:20:18
hello friend,just put the guid value(unique identifier) in your link...create a coloumn in your table ex "status"...when the link is clicked compare the guid value in your link with the guid value present in the database..and if the case matches just set the status value to true...and if the link is clicked second time compare the status value if it is true then your link has been already clicked..

kkk
Go to Top of Page
   

- Advertisement -