By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,650 Members | 753 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,650 IT Pros & Developers. It's quick & easy.

How to send values from one page to another?

P: n/a
Hello,

i have an ASP.net / VB page with a Script (submitValues) and a Form.

1. The form has 20 input texts and a "Submit" button.
2. The script declares 20 variables. The value of each variable is taken
from each of the 20 input texts.
3. When the button "Submit" is click the variable values are sent to an
email address using AspNetEmail.

As an example, the button code is this one:
<asp:Button ID="submit" runat="server" OnClick="submitValues"
Text="Submit"/>

What i want is to create 2 Pages:
A. Page1.aspx where i put 10 input texts.
B. Page2.aspx where i put the other 10 input texts.

When i click the button in Page1, the form values are sent to Page2.
When i click the button in Page2, the form values of Page1 (received) and
the form values of Page2 (inserted) will be sent by email using the script i
mentioned.

Can you help me out?

Thanks,

Nov 18 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
on click of submit button on page 1, post the form to Page 2 (set
action=Page2).
read all your variables in Page 2 page_load and put them in hidden variables
in page 2.
next on submit of page 2 read all variables.

Av.
"Miguel Dias Moura" <we****@27NOSPAMlamps.com> wrote in message
news:eA**************@TK2MSFTNGP09.phx.gbl...
Hello,

i have an ASP.net / VB page with a Script (submitValues) and a Form.

1. The form has 20 input texts and a "Submit" button.
2. The script declares 20 variables. The value of each variable is taken
from each of the 20 input texts.
3. When the button "Submit" is click the variable values are sent to an
email address using AspNetEmail.

As an example, the button code is this one:
<asp:Button ID="submit" runat="server" OnClick="submitValues"
Text="Submit"/>

What i want is to create 2 Pages:
A. Page1.aspx where i put 10 input texts.
B. Page2.aspx where i put the other 10 input texts.

When i click the button in Page1, the form values are sent to Page2.
When i click the button in Page2, the form values of Page1 (received) and
the form values of Page2 (inserted) will be sent by email using the script
i
mentioned.

Can you help me out?

Thanks,

Nov 18 '05 #2

P: n/a
I just found a very good article. Well, at least that's my opinion.

http://www.dotnetbips.com/displayarticle.aspx?id=79

What do you think?

Miguel

"avnrao" <av*@newsgroups.com> wrote in message
news:#M**************@TK2MSFTNGP10.phx.gbl...
on click of submit button on page 1, post the form to Page 2 (set
action=Page2).
read all your variables in Page 2 page_load and put them in hidden variables in page 2.
next on submit of page 2 read all variables.

Av.
"Miguel Dias Moura" <we****@27NOSPAMlamps.com> wrote in message
news:eA**************@TK2MSFTNGP09.phx.gbl...
Hello,

i have an ASP.net / VB page with a Script (submitValues) and a Form.

1. The form has 20 input texts and a "Submit" button.
2. The script declares 20 variables. The value of each variable is taken
from each of the 20 input texts.
3. When the button "Submit" is click the variable values are sent to an
email address using AspNetEmail.

As an example, the button code is this one:
<asp:Button ID="submit" runat="server" OnClick="submitValues"
Text="Submit"/>

What i want is to create 2 Pages:
A. Page1.aspx where i put 10 input texts.
B. Page2.aspx where i put the other 10 input texts.

When i click the button in Page1, the form values are sent to Page2.
When i click the button in Page2, the form values of Page1 (received) and the form values of Page2 (inserted) will be sent by email using the script i
mentioned.

Can you help me out?

Thanks,


Nov 18 '05 #3

P: n/a
There are a number of ways to pass values from one page to another, such as
using the querystring, cookies, session,context. You need to choose for your
applications which suits well, here is an another way for passing values
from one page to another page.
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconPassingServerControlValuesBetweenPages.asp

and another article on list of options for passing values across pages.
http://msdn.microsoft.com/msdnmag/is...e/default.aspx

--
Saravana
Microsoft MVP - ASP.NET
www.extremeexperts.com

"Miguel Dias Moura" <we****@27NOSPAMlamps.com> wrote in message
news:eA**************@TK2MSFTNGP09.phx.gbl...
Hello,

i have an ASP.net / VB page with a Script (submitValues) and a Form.

1. The form has 20 input texts and a "Submit" button.
2. The script declares 20 variables. The value of each variable is taken
from each of the 20 input texts.
3. When the button "Submit" is click the variable values are sent to an
email address using AspNetEmail.

As an example, the button code is this one:
<asp:Button ID="submit" runat="server" OnClick="submitValues"
Text="Submit"/>

What i want is to create 2 Pages:
A. Page1.aspx where i put 10 input texts.
B. Page2.aspx where i put the other 10 input texts.

When i click the button in Page1, the form values are sent to Page2.
When i click the button in Page2, the form values of Page1 (received) and
the form values of Page2 (inserted) will be sent by email using the script i mentioned.

Can you help me out?

Thanks,

Nov 18 '05 #4

P: n/a
I think the most straightforward way here is to write out
those values to a text file (do this in the submitValues
method of page1.aspx) then let page2.aspx pick those
values from the text file and post the combined group of
values to the email
-----Original Message-----
Hello,

i have an ASP.net / VB page with a Script (submitValues) and a Form.
1. The form has 20 input texts and a "Submit" button.
2. The script declares 20 variables. The value of each variable is takenfrom each of the 20 input texts.
3. When the button "Submit" is click the variable values are sent to anemail address using AspNetEmail.

As an example, the button code is this one:
<asp:Button ID="submit" runat="server" OnClick="submitValues"Text="Submit"/>

What i want is to create 2 Pages:
A. Page1.aspx where i put 10 input texts.
B. Page2.aspx where i put the other 10 input texts.

When i click the button in Page1, the form values are sent to Page2.When i click the button in Page2, the form values of Page1 (received) andthe form values of Page2 (inserted) will be sent by email using the script imentioned.

Can you help me out?

Thanks,

.

Nov 18 '05 #5

P: n/a
text file? are you serious?
#

just use session variables for each var
"michaelAngelo" <an*******@discussions.microsoft.com> wrote in message news:16****************************@phx.gbl...
I think the most straightforward way here is to write out
those values to a text file (do this in the submitValues
method of page1.aspx) then let page2.aspx pick those
values from the text file and post the combined group of
values to the email
-----Original Message-----
Hello,

i have an ASP.net / VB page with a Script (submitValues)

and a Form.

1. The form has 20 input texts and a "Submit" button.
2. The script declares 20 variables. The value of each

variable is taken
from each of the 20 input texts.
3. When the button "Submit" is click the variable values

are sent to an
email address using AspNetEmail.

As an example, the button code is this one:
<asp:Button ID="submit" runat="server"

OnClick="submitValues"
Text="Submit"/>

What i want is to create 2 Pages:
A. Page1.aspx where i put 10 input texts.
B. Page2.aspx where i put the other 10 input texts.

When i click the button in Page1, the form values are

sent to Page2.
When i click the button in Page2, the form values of

Page1 (received) and
the form values of Page2 (inserted) will be sent by

email using the script i
mentioned.

Can you help me out?

Thanks,

.

Nov 18 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.