using System.IO; using System.Net;
public static String code() { HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create("http://www.google.com"); // Your ASPX Page URL myRequest.Method = "GET"; WebResponse myResponse = myRequest.GetResponse(); StreamReader sr = new StreamReader(myResponse.GetResponseStream(), System.Text.Encoding.UTF8); string result = sr.ReadToEnd(); sr.Close(); myResponse.Close(); return result; }
Login to post response