Posted on: 5/22/2014 3:54:14 PM | Views : 368

private static string getSourceCode(string uri) { string sourceCode = ""; try { HttpWebRequest request = (HttpWebRequest)WebRequest.Create(uri); HttpWebResponse response = (HttpWebResponse)request.GetResponse(); StreamReader sr = new StreamReader(response.GetResponseStream()); sourceCode = sr.ReadToEnd(); sr.Close(); response.Close(); return sourceCode; } catch { sourceCode = "ERROR"; } return sourceCode; } With this code I got source code from the website
string[] stringArray = { getSourceCode("DOMAIN NAME) }; var target = "Registered On"; if (stringArray.Contains(target)) { Button1.Text = "OK"; } else { Button1.Text = ...

Go to the complete details ...