Ciao,
dovresti scrivere una cosa del genere:
public bool CheckUrl(string uri)
{
try
{
string html = "";
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(uri);
request.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate;
using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())
using (Stream stream = response.GetResponseStream())
using (StreamReader reader = new StreamReader(stream))
{
html = reader.ReadToEnd();
}
if (html.IndexOf("www tuosito it") != -1)
{
return true;
}
else
return false;
}
catch {
return false;
}
}
Poi ogni tot ore lo fai richiamare da uno scheduler....