Patrick, I've tried this - it's actually not exactly what I need.
In my case I'm posting data to the gateway. This gateway returns the results
in field1, field2, etc. It posts this result back to my page. Many gateways
are posting data to the different URL, so it's not a problem to get values
of these fields by using Request.Form(field1) etc. But not this one.
I can use the post string and then get all results in one string, like this:
Dim objResponse As HttpWebResponse = objRequest.GetResponse()
Dim sr As StreamReader
sr = New StreamReader(objResponse.GetResponseStream(),
Encoding.GetEncoding(1251))
result = sr.ReadToEnd()
sr.Close()
This works fine. But I'd rather get them by the field name, i.e. get values
of field1, field2 etc. Any idea how to do this?
Thank you,
Peter
"Patrick.O.Ige" <na********@hotmail.com> wrote in message
news:uL**************@TK2MSFTNGP10.phx.gbl...
Peter try looking at this sample at:-
http://aspnet101.com/aspnet101/tutorials.aspx?id=20
Hope that helps
Patrick
"Peter Afonin" <pa*****@hotmail.com> wrote in message
news:uY**************@TK2MSFTNGP12.phx.gbl... Hello,
I'm posting the data to another page and reading the results. I'm doing
it approximately as described here:
http://authors.aspalliance.com/steve...netscrape2.asp
It works fine. But I'm getting the result as one string. I know the
field names that are actually returned. Is there a way to return the value of
each field instead of the whole string? Request.Form(fieldname) doesn't seem
to work here.
I would appreciate any advice.
Thank you,
--
Peter Afonin