How to display the uptime of your (web) server
(Thursday, August 19, 2004)
Determine the uptime of your (web) server
In just one line of code show your public how long your (web) server has been up and running.
Create an empty web form and place a default button and a label on it. In the click event of the button specify this line of code.
'VB Label1.Text = (Environment.TickCount / 1000).ToString & " seconds" This will show the uptime of your server in seconds.
Posted by Xander Zelders

|
0 Comments:
Post a Comment
<< Home