473,473 Members | 2,167 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Posting data and reading it

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
Jan 16 '06 #1
3 1324
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

Jan 16 '06 #2
Hi Patrick,

Yes, that should do it. I can use this or perhaps Javascript to post to
another page. Thank you very much!

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


Jan 16 '06 #3
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


Jan 19 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Michal Szpadzik | last post by:
I'm a newbie. I have some problems with bits data reading. I have binary data file where data is written as 12bits pack. I need to read it becouse there are saved values which have to processed...
1
by: Allan Cammish | last post by:
I have seen some examples of client-side code inside an ActiveX control posting data back to the server in ASP. I have tried the code and it works well. However, I need to see how this is done...
1
by: lasabo | last post by:
Hi, I'm trying to send a post to a form on a webserver that requires credentials. When I log in it works just fine, but when I try to post data to the webserver the credentials aren't...
2
by: John | last post by:
Hi all, I have a modal dialog window from which a user selects a few rows from a datagrid and then clicks on an image button. My question is two-fold: 1. How do I post data back to the same...
3
by: Manuel | last post by:
I have an asp page ("test.asp") that presents the data it receives from a post.When I try the following code, test.asp doesn't return the values (supposedly) posted to it. If I make a web page with...
4
by: Peter Afonin | last post by:
Hello, I have a form with several buttons, and I need to post this data to several different applications. In ASP.NET 1.1 it was quite easy - I just used HTML controls (text or hidden), then...
4
by: Boki | last post by:
Hi All, I need to let user type some text in a textbox, and user will click a button to submit the material. It is very straightforward if we implement it by single thread. But the...
0
by: kedarj7 | last post by:
Hi Can anybody help me in posting data through POST method to secure web site using Inet control in vb6. I have done following program (Inet1 is a control name) Dim strURL as string Dim...
2
by: yaveus | last post by:
Hi?I am studying java on my own and got stack on how to read and post data to a file using java e.g how will you solve this: A simple application that, when run, Welcomes the users and tells them...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.