Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

clock server control help!

Status
Not open for further replies.

newmem

Programmer
Jul 23, 2002
35
US
I am looking for a digital clock server control which can be added to the
.net web application. Its similar to the one in the task bar but this would
let the user view the server time.

any samples (vb.net) would be appreciated.
Thanks
 
Just make a label and in the page_load event do this

label1.text = Date.Now.ToShortTimeString

This will put the servers time into the text box That'l do donkey, that'l do
[bravo] Mark
If you are unsure of forum etiquette check here faq796-2540
 
Thta's possible but it would display only the current time only.
I am really looking for a "CLOCK" to display on each page and not just the current time.
(I found a sample Digital Clock written in C#.. but now i'm not familiar with the syntax and how to convert it into a vb control class. )

 
why do you want to convert it? You can use C# classes in a vb program i beleive. That'l do donkey, that'l do
[bravo] Mark
If you are unsure of forum etiquette check here faq796-2540
 
yeah.. i shud be able to use the C# control as it is but then it appears to be defined as a windows User Control and I need a web User Control:(
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top