| Author: vipul 12 Aug 2008 | Member Level: Diamond | Rating: Points: 3 |
hi, for that you used webservices or using xml which generate other site and you used that data or using webreuqest you get html page in your site.
vipul, http://dongavipul.blogspot.com
Patel Vipul Web Developer Ahmedabad ( Gujarat )
|
| Author: Danasegarane.A 12 Aug 2008 | Member Level: Diamond | Rating: Points: 5 |
You have to use the HttpWebRequest Class to retrive the values from othersites
This article explains it
http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.aspx
http://blog.strikefish.com/blog/index.cfm?mode=entry&entry=FE7C55D8-1422-201A-559B1E6213899E41
http://www.worldofasp.net/tut/WebRequest/Working_with_HttpWebRequest_and_HttpWebResponse_in_ASPNET_114.aspx
I would suggest to read the Last one
Which will be more user friendly
Hope this helps
Dana
Thanks and Regards, Danasegarane Arunachalam
|
| Author: Thirumal Rao 12 Aug 2008 | Member Level: Bronze | Rating: Points: 5 |
Check it
protected void Page_Load(object sender,EventArgs e) { Uri uri = new Uri("http://www.microsoft.com/default.aspx"); if(uri.Scheme = Uri.UriSchemeHttp) { HttpWebRequest request = HttpWebRequest.Create(uri); request.Method = WebRequestMethods.Http.Get; HttpWebResponse response = request.GetResponse(); StreamReader reader = new StreamReader(response.GetResponseStream()); string tmp = reader.ReadToEnd(); response.Close(); Response.Write(tmp); } }
|