recording date and time a link is clicked

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Mar 2004
Posts: 634
Reputation: Slade has a spectacular aura about Slade has a spectacular aura about 
Solved Threads: 7
Slade's Avatar
Slade Slade is offline Offline
Practically a Master Poster

recording date and time a link is clicked

 
0
  #1
May 11th, 2004
Hey all, I just wanna know how to record the time and day a link on my website is clicked to a label, what code do I need to use to get the date and time?.
  
PrivateSub lnkVac_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lnkVac.Click
 
Dim Timevisited as string
Response.Redirect("Vacancies.aspx")
label1.text = Timevisited
EndSub


What code do I need to use to get the date and time?

Thanks,

Slade.
Formerly known as Slade.
Reply With Quote Quick reply to this message  
Join Date: May 2004
Posts: 3
Reputation: Billy_ is on a distinguished road 
Solved Threads: 0
Billy_ Billy_ is offline Offline
Newbie Poster

Re: recording date and time a link is clicked

 
0
  #2
May 14th, 2004
Hi,

I'm not sure what you're trying to do here.... Could you just use something like...

Private Sub lnkVac_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lnkVac.Click

'Dim Timevisited as string
'Response.Redirect("Vacancies.aspx")

label1.text = Now()

End Sub


You could change the Now() bit with Today() or TimeOfDay() to get just the date or just the time if need be. :eek:

Also, if you have the Now() bit after your response redirect, how will the label get set?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC