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.
|