Passing value from page to page

Hi ,
I have a small problem.How can I pass value from form thru a few pages. I
try with hidden field but my second page just validate and redirect to other
one and when I use Request.Form("field") it's nothing coming back.
Any help please.
thanks
Viktor [ Di, 07 Dezember 2004 17:51 ] [ ID #523806 ]

Re: Passing value from page to page

Hidden inputs should work if you're submitting a form. Can you post some
example code/html snippets of what is not working?

Ray at work

"viktor" <serguienkov [at] hotmail.com> wrote in message
news:OfFI9zH3EHA.1124 [at] tk2msftngp13.phx.gbl...
> Hi ,
> I have a small problem.How can I pass value from form thru a few pages. I
> try with hidden field but my second page just validate and redirect to
other
> one and when I use Request.Form("field") it's nothing coming back.
> Any help please.
> thanks
>
>
my first name at lane [ Di, 07 Dezember 2004 18:01 ] [ ID #524569 ]

Re: Passing value from page to page

And Request.QueryString("field") ??
gerard.leclercq [ Di, 07 Dezember 2004 18:03 ] [ ID #524570 ]

Re: Passing value from page to page

Gazing into my crystal ball I observed "viktor"
<serguienkov [at] hotmail.com> writing in
news:OfFI9zH3EHA.1124 [at] tk2msftngp13.phx.gbl:

> Hi ,
> I have a small problem.How can I pass value from form thru a few
> pages. I try with hidden field but my second page just validate and
> redirect to other one and when I use Request.Form("field") it's
> nothing coming back. Any help please.
> thanks
>
>
>

You can use hidden input, but make sure that you always pass the
information on. If you are doing a response.redirect, then you have to
include the information in a querystring, and use request.querystring to
retrieve the values.

For example:

<%
'This passes everything in the request.form collection to a querystring.
Redirect = "redirect.asp?"
For ix = 1 to Request.Form.Count
field = Request.Form.Key(ix)
InputValue = Request.Form.Item(ix)
redirect = redirect & field & "=" & inputvalue & "&"
Next
response.redirect redirect
%>

If it's a small amount of data, you could probably use the session object,
but, if the user is not accepting cookies, you're SOL.
--
Adrienne Boswell
Please respond to the Group so others can share
Adrienne [ Di, 07 Dezember 2004 18:21 ] [ ID #524571 ]

Re: Passing value from page to page

thanks works fine
"Adrienne Boswell" <arbpen2003 [at] sbcglobal.net> wrote in message
news:Xns95B85F2DB9CE0arbpen2003sbcglobaln [at] 64.164.98.6...
> Gazing into my crystal ball I observed "viktor"
> <serguienkov [at] hotmail.com> writing in
> news:OfFI9zH3EHA.1124 [at] tk2msftngp13.phx.gbl:
>
>> Hi ,
>> I have a small problem.How can I pass value from form thru a few
>> pages. I try with hidden field but my second page just validate and
>> redirect to other one and when I use Request.Form("field") it's
>> nothing coming back. Any help please.
>> thanks
>>
>>
>>
>
> You can use hidden input, but make sure that you always pass the
> information on. If you are doing a response.redirect, then you have to
> include the information in a querystring, and use request.querystring to
> retrieve the values.
>
> For example:
>
> <%
> 'This passes everything in the request.form collection to a querystring.
> Redirect = "redirect.asp?"
> For ix = 1 to Request.Form.Count
> field = Request.Form.Key(ix)
> InputValue = Request.Form.Item(ix)
> redirect = redirect & field & "=" & inputvalue & "&"
> Next
> response.redirect redirect
> %>
>
> If it's a small amount of data, you could probably use the session object,
> but, if the user is not accepting cookies, you're SOL.
> --
> Adrienne Boswell
> Please respond to the Group so others can share
Viktor [ Di, 07 Dezember 2004 21:43 ] [ ID #524584 ]
Webserver » microsoft.public.inetserver.asp.general » Passing value from page to page

Vorheriges Thema: Computer name in ASP
Nächstes Thema: Will ASP query be slow if field names are lengthy?