string url = "http://www.urlfilterdb.com/files/downloads/ReferenceManual.pdf"; string strResult = ""; WebResponse objResponse; WebRequest objRequest = System.Net.HttpWebRequest.Create(url); objResponse = objRequest.GetResponse(); using (StreamReader sr = new StreamReader(objResponse.GetResponseStream())) { strResult = sr.ReadToEnd(); // Close and clean up the StreamReader sr.Close(); } // Display results to a webspage Response.Write(strResult); // save to the databa System.IO.File.WriteAllText(@"C:\Users\Nokukhanya\Documents\pages_index\", strResult);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)