Reputation: 641
I was wondering if it's possible to add seconds to a clock in vb.net. I mean lt's say I have a label and I assign it to DateTime.Now(), how would I show/display the time with the seconds "ticking"?
Upvotes: 2
Views: 665
Reputation: 2186
I assume you're talking about ASP.NET and not a desktop app. In which case you're going to have to use JavaScript to update the user interface as once the time is set from the server side you can't update it. See this:
http://www.w3schools.com/js/tryit.asp?filename=tryjs_timing_clock
Upvotes: 3