How can i call an external Url from my Page in Asp.Net, How to call a URL in a web form in c#

using System.Net;
using System.IO; 
WebRequest req = WebRequest.Create(""+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();

Also set timeout of your req object as required by your application.

Asif Munir

Popular posts from this blog

How to Delete WHM Mail Queue through SSH sent from a particular sender

how to change witribe wlan password? how to secure your witribe router

How to Delete all logs in a cpanel server - SSH