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

SOLVED: WHM/CPANEL Your server does not support the connection encryption type you have specified. Try changing the encryption method