Subject: About HttpWebRequest in vb.net
Posted By: zhangxueq Post Date: 2/7/2004 8:15:07 AM
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.
Reply By: planoie Reply Date: 2/9/2004 11:30:15 AM
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.

Go to topic 9523

Return to index page 953
Return to index page 952
Return to index page 951
Return to index page 950
Return to index page 949
Return to index page 948
Return to index page 947
Return to index page 946
Return to index page 945
Return to index page 944