473,407 Members | 2,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

How to send values from one page to another?

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
5 2127
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Kassam | last post by:
Hi MVPs out there. I have constructed an order form and the users will enter the informtion. I now need to send the filled out form as an e-mail (body being the HTML with the fille din data) to...
4
by: Mark J. McGinty | last post by:
Greets, Part of the content of one of our web pages uses wingdings and Chr(239) through Chr(242) (which are little arrow outlines, though that's not really important.) It worked just fine in...
5
by: zorhel | last post by:
Hi. My clients will be IE, Mozilla and Opera in a Windows and *nix OS. So, my web app need to, from a server, send messages to a specific client (browser), send messages for all clients,...
9
by: eswanson | last post by:
I have a web page I need to post a file plus some other fields to it. How can I do this from a asp.net page. I know I can send individual fields to the other page, but how do I send a file to the...
4
by: Andrea De Santi | last post by:
How can I redirect to another page with form data? In asp Classic I write: <form ... action="filename">...</form> and in then target page I write <%=request.form("fieldname")%> ..... but in...
4
by: André | last post by:
Hi, I try to create and render a graphic among other objects like e.g. tables, labels, buttons. The tables are not a problem, neither the graphic. My problem is that i can't render both...
1
by: brendwal | last post by:
Hi, I am stumped at how to do this: I have a simple webform that I want the user to enter one value (an address). I then want the form to send those values to a PHP script that processes the...
7
by: newlearner | last post by:
hi, On a test page i try to insert some values thru post method but the values which i send is not replaced in the url which i specify. I get the code found in the page and not the updated one. ...
2
by: sindhudixit | last post by:
Hey, I am having a user fill out a form then the fields are going to uploaded to my database. So, at this point, when the user hits the submit button I want three things to happen: 1. The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.