Wrox Programmer Forums
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 7th, 2004, 09:15 AM
Registered User
 
Join Date: Feb 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to zhangxueq
Default About HttpWebRequest in vb.net

I use a HttpWebRequest to post data from a windows form to an aspx page.But the receved data in the page is not exactly right. I would be glad if someone could give me some advice or suggestion. If there is anything should be taken care of ,please tell me, thanks a lot.
 
Old February 9th, 2004, 12:30 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Is this ASPX page one you created? If so, you should consider using a web service. This is a exactly what web services are for. Instead of trying to "scrape" a web page, you call the web service and get the data in XML so it's very easy to use. Furthermore, in your case you are building a .net application already so you can use a web reference in the windows form and the use of the web service will be completely transparent. The windows form can actually get the results from the web service in strongly typed .net objects without you needing to write any code to handle the XML or the HttpWebRequest. Web services are a beautiful thing.

Peter
------------------------------------------------------
Work smarter, not harder.





Similar Threads
Thread Thread Starter Forum Replies Last Post
ProgressBar on httpwebrequest panuvin C# 1 February 5th, 2007 03:24 PM
HttpWebRequest over SSL Suhrit ASP.NET 2.0 Professional 0 December 7th, 2006 03:41 AM
HTTPWebRequest GetResponse Timing-out amahajan .NET Web Services 0 July 13th, 2005 11:54 AM
HTTPWebRequest hangs in ASP.NET natalie t VS.NET 2002/2003 1 August 4th, 2004 02:48 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.