• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 394
  • Last Modified:

time in asp.net

i want to show my server's time in asp.net label
and tick it
live
0
chandresh43
Asked:
chandresh43
  • 2
  • 2
1 Solution
 
Jorge PaulinoIT Pro/DeveloperCommented:
Hi chandresh43,

You can use an AJAX timer. Check this video that shows how to do it: http://www.asp.net/learn/ajax-videos/video-99.aspx
0
 
chandresh43Author Commented:
i don't to use current time of user computer using my server's time
in asp
0
 
williamcampbellCommented:
You can setup a WebService on the Server Side to return the Servers time

Start a Simple  WCFWeb Service  Project it comes with one Webservice already in it called hello.
You can modify this to return DateTime.Now instead of Hello.

Publish the project to your IIS server

You Can now modify the code link I sent you to call the webservice instead of  aDtaTime.Now

Let me know if you need any help with this

0
 
chandresh43Author Commented:
please give example
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now