static bool CheckURL(String url)
{
if(String.IsNullOrEmpty(url))
return false;
WebRequest request = WebRequest.Create(url);
try
{
HttpWebResponse res = request.GetResponse() as HttpWebResponse;
if (res.StatusDescription == "OK")
return true;
}
catch
{
}
return false;
}
Thursday, August 27, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment