using System.Net;
using System.IO;
WebRequest req = WebRequest.Create("http://www.Website.com/MyPage.aspx?qr="+Value);
//Get the data as an HttpWebResponse object
WebResponse resp = req.GetResponse();
//Convert the data into a string (assumes that you are requesting text)
StreamReader sr = new StreamReader(resp.GetResponseStream());sr.ReadToEnd();
sr.Close();
Also set timeout of your req object as required by your application.
Regards
Asif Munir
0 Comments