May 3, 2010 05:48 PM
(This post was last modified: May 3, 2010 06:45 PM by codepoet.)
Description:
This function checks if a given internet address is available.
originally posted on dotnet-snippets.com
This function checks if a given internet address is available.
Code
Public Function CheckURL(ByVal URL As String) As Boolean
Try
Dim Response As Net.WebResponse = Nothing
Dim WebReq As Net.HttpWebRequest = Net.HttpWebRequest.Create(URL)
Response = WebReq.GetResponse
Response.Close()
Return True
Catch ex As Exception
Return False
End Try
End Functionoriginally posted on dotnet-snippets.com
[img]http://i685.photobucket.com/albums/vv215/blackpearl4/THANKS.gif[/img]
If You Like this tutorial, please check out my other tutorials by clicking ==> H3R3
PHP & .NET Contributor.


