I'm not even sure if the title of my post is correct but here's what i'm trying to do.
trying to via asp.net 2.0 code, send a request directly to a web site with a formatted querystring.
how do i do this?
I don't know about others, but I'll need a little more information - -
normally a querystring would be something like:
http://TheWebsite.com?id=myID
It all depends on where it's coming from and exactly what you want to do.
You can create a Hyperlink on a page (either HTML or ASP.Net) with a hard coded url/querystring
You can create an ASP.Net Hyperlink on a page, and, based on input somewhere else on your page, make the web address and/or querystring dynamic, based on the other data.
What are you looking to do, exactly?
I'm trying to send data to a public server ... like a city directory search using the querystring... and then save the data to an excel spreadsheet.
so far, i've been able to use httpwebrequest / httpwebresponse to do this.. but the response is really ugly. i get all the hml ... i'm only interested in the actual data... and it's kinda tricky cause if the search returns multiple pages, then it looks like i'm going to have to search through the response text to find the session id and then post over and over again until all data is retrieved.
... any comments? does this sound reasonable?
What I have understood from your query is you want some response from some public website from your web server & want to show the information on your page. As per my understanding you need to use httpwebresponse & search through the response text.
If you can use web service rather then website from your page, it would resolve your problem. In that case you will be having result rather then web reponse. But for that web service shoudl be provided by the called public server.
0 comments:
Post a Comment