G
Guest
I need a way to ping an IP address from an ASP.NET page to verify that it is not in use. This is one example given to me earlier, but unfortunetly I do not know C#. Could someone translate this into VB for me? or perhaps know of another way to easily ping an IP from an ASP.NET page.
Thanks Devin
Found at http://www.asp.net/ControlGallery/ControlDetail.aspx?Control=2069&tabindex=2
PingClient client = new PingClient();
PingReply reply = client.Ping("www.example.com");
if (reply.Success)
{
string message = "Reply took " + reply.Time + " milliseconds");
}
Thanks Devin
Found at http://www.asp.net/ControlGallery/ControlDetail.aspx?Control=2069&tabindex=2
PingClient client = new PingClient();
PingReply reply = client.Ping("www.example.com");
if (reply.Success)
{
string message = "Reply took " + reply.Time + " milliseconds");
}