Web Form

G

Guest

Dear Experts,

I would like to find out, how can I pass the value entered in the webform to
another webform and carry on to another web form. Example, I have 3 webforms
(Form1, Form2, Form3). All values are entered in Form1 and then move on the
Form2 with a button click and from Form2 with a button click to Form3. I need
the values from Form1 to be displayed in Form3. How can I go about doing it?


Regards,
SB
 
C

Cor Ligthert [MVP]

Seok,

For this is in ASPNET as it was in ASP used the Session.

Session.Item("MyItem") = "What is on Form1"

And than you can use it in the loadevent of your other forms.

I hope this helps,

Cor
 
C

clintonG

Actually, there are at least 3-4 different ways to pass data from page to
page if not more.
This article [1] -- and others -- from Steve Orr explain different methods
for passing data between forms.

I'd suggest using the ASP.NET 2.0 Wizard Control to automate the passing of
data between Step1, Step2 and so on without writing any code at all.

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/

[1] http://steveorr.net/faq/PassValues.aspx
 

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

Top