Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
134 Points
300 Posts
Apr 30, 2012 06:45 AM|LINK
using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
using Microsoft.VisualBasic;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Net;
partial class _Default1 :System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
string strURL = null;
string strResult = null;
HttpWebRequest wbrq = null;
HttpWebResponse wbrs = null;
StreamReader sr = null;
// Set the URL (and add any querystring values)
strURL ="http://aspnetlibrary.com/articles.aspx?Page=1";
// Create the web request
wbrq =WebRequest.Create(strURL);
wbrq.Method ="GET";
// Read the returned data
wbrs = wbrq.GetResponse();
sr =new StreamReader(wbrs.GetResponseStream());
strResult = sr.ReadToEnd().Trim();
sr.Close();
// Write the returned data out to the page
TextBox1.Text = strResult;
}
public Default1()
Load += Page_Load;
maddyrafi897...
Member
134 Points
300 Posts
Re: try to help
Apr 30, 2012 06:45 AM|LINK
using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
using Microsoft.VisualBasic;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Net;
partial class _Default1 :System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string strURL = null;
string strResult = null;
HttpWebRequest wbrq = null;
HttpWebResponse wbrs = null;
StreamReader sr = null;
// Set the URL (and add any querystring values)
strURL ="http://aspnetlibrary.com/articles.aspx?Page=1";
// Create the web request
wbrq =WebRequest.Create(strURL);
wbrq.Method ="GET";
// Read the returned data
wbrs = wbrq.GetResponse();
sr =new StreamReader(wbrs.GetResponseStream());
strResult = sr.ReadToEnd().Trim();
sr.Close();
// Write the returned data out to the page
TextBox1.Text = strResult;
}
public Default1()
{
Load += Page_Load;
}
}