User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 426,640 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 1,596 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 3362 | Replies: 1
Reply
Join Date: Mar 2004
Location: Brisbane
Posts: 632
Reputation: Slade has a spectacular aura about Slade has a spectacular aura about 
Rep Power: 7
Solved Threads: 6
Slade's Avatar
Slade Slade is offline Offline
Practically a Master Poster

recording date and time a link is clicked

  #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?.
  
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 = Timevisited
End Sub


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

Thanks,

Slade.
Formerly known as Slade.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: May 2004
Posts: 3
Reputation: Billy_ is on a distinguished road 
Rep Power: 0
Solved Threads: 0
Billy_ Billy_ is offline Offline
Newbie Poster

Solution Re: recording date and time a link is clicked

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 12:52 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC