Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing Data to another form

Status
Not open for further replies.

parames

MIS
Jun 26, 2000
71
MY
How to pass data from an asp page without using the submit button.
For example, first i will use the submit button to pass the value from 0.asp to 1.asp. Then i need to pass the same textbox data from 1.asp to 2.asp without using submit button.

so, when the user enter the submit button they will see their entered data in 2.asp. Is it possible to do that..

need help,
parames.s
 
Yes, store the data that you get from page ) into Session variables when you access them in Page 1. This data is then visible throughout the whole time that the user is connected to the site and is visible across all pages. This data is visible only to the user that submited it.

Example:

In page 1:

Code:
Session("name") = Request.From("txtName")

In page 2 to access data submitted in page 0:

Code:
myVar = Session("name")

Hope this helps,

James :) James Culshaw
jculshaw@active-data-solutions.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top