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" <naijacoder@hotmail.com> wrote in message
news:uLyBbRlGGHA.1124@TK2MSFTNGP10.phx.gbl...[color=blue]
> Peter try looking at this sample at:-
>
http://aspnet101.com/aspnet101/tutorials.aspx?id=20
> Hope that helps
> Patrick
>
> "Peter Afonin" <pafonin@hotmail.com> wrote in message
> news:uYGRTEjGGHA.1032@TK2MSFTNGP12.phx.gbl...[color=green]
> > Hello,
> >
> > I'm posting the data to another page and reading the results. I'm doing[/color][/color]
it[color=blue][color=green]
> > 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[/color][/color]
field[color=blue][color=green]
> > names that are actually returned. Is there a way to return the value of[/color]
> each[color=green]
> > field instead of the whole string? Request.Form(fieldname) doesn't seem[/color][/color]
to[color=blue][color=green]
> > work here.
> >
> > I would appreciate any advice.
> >
> > Thank you,
> >
> > --
> > Peter Afonin
> >
> >[/color]
>
>[/color]