Add below mention assembly in your project.

using System.Net;
using System.Text;

try

{

WebClient myClient = new WebClient();

string myPageHTML = null;

byte[] requestHTML;

string currentPageUrl = “https://abcd1212.com/webpage.aspx”;

UTF8Encoding utf8 = new UTF8Encoding();

requestHTML = myClient.DownloadData(currentPageUrl);

myPageHTML = utf8.GetString(requestHTML);

Response.Write(myPageHTML);

}

catch (Exception ex)

{

}

If you like this post, request you to put your comment.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: