ASP Loop

S

Shiraj

I have a problem,
I can display some text 5 times using a loop
and i want to pass those printed
values to another page when i clicked send button.if you know the method please
email me.
thank you.
([email protected])
 
E

Evertjan.

Shiraj wrote on 26 sep 2005 in microsoft.public.inetserver.asp.general:
I have a problem,
I can display some text 5 times using a loop
and i want to pass those printed
values to another page when i clicked send button.if you know the
method please email me.
thank you.
([email protected])

Does not seem possible serverside [ASP], because by "printed" I suppose you
mean put on the screen by the browser.

Please ask a clientside NG.
 
B

Bob Barrows [MVP]

Shiraj said:
I have a problem,
I can display some text 5 times using a loop
and i want to pass those printed
values to another page when i clicked send button.if you know the
method please email me.
thank you.
([email protected])

Put them into form elements and use the Send button to submit the form.

Bob Barrows
 
B

Bullschmidt

Generally speaking you can pass variables from page to page by:

1) Posting form fields from one page to the next (or to the same page)
and on the page to retrieve the value strLName = Request.Form("LName")

2) Using a querystring such as Response.Redirect
"login.asp?lname=smith&fname=tom" and on the page to retrieve the values
strLName = Request.QueryString("lname") and strFName =
Request.QueryString("fname")

3) Using session variables such as Session("LName") = "Smith" and on the
page to retrieve the value strLName = Session("LName")

4) Using cookie variables such as Cookie("LName") = "Smith" and on the
page to retrieve the value strLName = Cookie("LName")

5) Storing data in a database on one page and then retrieving it from
the database on the other page.

Best regards,
J. Paul Schmidt, Freelance Web and Database Developer
http://www.Bullschmidt.com
Classic ASP Design Tips, ASP Web Database Sample

<<
I have a problem,
I can display some text 5 times using a loop
and i want to pass those printed
values to another page when i clicked send button.if you know the method
please
email me.
thank you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,147
Messages
2,570,833
Members
47,380
Latest member
AlinaBlevi

Latest Threads

Top