How to call aspx page from C#

  • Thread starter Thread starter sudeeprgaitonde
  • Start date Start date
S

sudeeprgaitonde

Hello,

I am forming a aspx url with query string parameters as variables.

sUrl = "http://abcd.com/getresults.aspx?zipcode=" + zipcode +
"&areaCode=" + areacode + "&Landmark=" + landmark;

When this url formed is run in IE, it returns an xml in the browser.
Now I want to duplicate this functionality in my code (like invoking
this url from within a function and getting the xml as output from the
function) so that my code can parse the xml got in return.

Kindly suggest a way in which this can be achieved?

Thanks in advance,

Sudeep
 
It's quite easy to do.

Just do a search on google for:
C# OR csharp httprequest

You should get loads of tutorials etc.

If you can't find anything useful, give me a shout. I have some bits
and pieces of code that does this.

Best,
Andre
 
Sounds like you are re-inventing web services.

Why not just use the standard SOAP/proxy model?
 
Back
Top