C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




how to read values from another website


Posted Date: 12 Aug 2008      Total Responses: 3

Posted By: atul       Member Level: Silver     Points: 1



hi
exp.


this my proj requirment that a page of my web is read some values from another website without going on that website and show results on its own page
plz tll me how to do this





Responses

Author: vipul    12 Aug 2008Member Level: DiamondRating:     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 2008Member Level: DiamondRating:     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 2008Member Level: BronzeRating:     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);
}
}





Post Reply
You must Sign In to post a response.
Next : treeview inside the dropdownlist
Previous : Problem with Mozilla using HTML Editor
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use