[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

time in asp.net

Posted on 2009-04-13
6
Medium Priority
?
393 Views
Last Modified: 2012-05-06
i want to show my server's time in asp.net label
and tick it
live
0
Comment
Question by:chandresh43
  • 2
  • 2
5 Comments
 
LVL 48

Expert Comment

by:jpaulino
ID: 24130546
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
 
LVL 5

Author Comment

by:chandresh43
ID: 24131776
i don't to use current time of user computer using my server's time
in asp
0
 
LVL 12

Accepted Solution

by:
williamcampbell earned 1500 total points
ID: 24132222
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
 
LVL 5

Author Comment

by:chandresh43
ID: 24134864
please give example
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question