473,387 Members | 1,721 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,387 software developers and data experts.

Passing form values from one page to other. Please, help me out. Thank You.

Hello,

i created an ASP.net / VB page with a really big form.

Now i want to create 4 pages and in each one i will place 1/4 of the big
form.

The last page will send all the form values by email.

How can i send the form values from one page to the next one?

I looked everywhere and i wasn't able to make this work. I found a good
ASP.net / C code example in
http://www.dotnetbips.com/displayarticle.aspx?id=79. However, i am having
problems in translating it to VB.
Yes, i did used the most 2 common translaters but i am still having
problems.

Is there someone that can help me doing this? 2 sample ASP.net / VB pages
would be great.

Anyway, any help would be apreciated.

Thank You Very Much,
Miguel
Nov 18 '05 #1
4 1770
Hi Miguel,

Instead of using 4 different pages why don't you use one page and seperate
the form into 4 sections using panels on that one page...that way you
wouldn't have to pass the form values around. You can use the Visible
property of the panels to toggle the different sections to show/hide.

An idea anyways :)

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

i created an ASP.net / VB page with a really big form.

Now i want to create 4 pages and in each one i will place 1/4 of the big
form.

The last page will send all the form values by email.

How can i send the form values from one page to the next one?

I looked everywhere and i wasn't able to make this work. I found a good
ASP.net / C code example in
http://www.dotnetbips.com/displayarticle.aspx?id=79. However, i am having
problems in translating it to VB.
Yes, i did used the most 2 common translaters but i am still having
problems.

Is there someone that can help me doing this? 2 sample ASP.net / VB pages
would be great.

Anyway, any help would be apreciated.

Thank You Very Much,
Miguel

Nov 18 '05 #2
One way would be to keep your single page, and put each of the 4 sections
into its own panel. Then show & hide each panel one at a time in order,
simulating 4 separate pages. This way all your data is actually kept on a
single page from the server's perspective, making it unnecessary to come up
with a complex scheme to pass the data all over the place.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Miguel Dias Moura" <we****@27NOSPAMlamps.com> wrote in message
news:Op*************@TK2MSFTNGP09.phx.gbl...
Hello,

i created an ASP.net / VB page with a really big form.

Now i want to create 4 pages and in each one i will place 1/4 of the big
form.

The last page will send all the form values by email.

How can i send the form values from one page to the next one?

I looked everywhere and i wasn't able to make this work. I found a good
ASP.net / C code example in
http://www.dotnetbips.com/displayarticle.aspx?id=79. However, i am having
problems in translating it to VB.
Yes, i did used the most 2 common translaters but i am still having
problems.

Is there someone that can help me doing this? 2 sample ASP.net / VB pages
would be great.

Anyway, any help would be apreciated.

Thank You Very Much,
Miguel

Nov 18 '05 #3
Never did something like that.
Can anyone indicate me where can i find some information about it?

Thank You,
Miguel

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:eq**************@TK2MSFTNGP12.phx.gbl...
One way would be to keep your single page, and put each of the 4 sections
into its own panel. Then show & hide each panel one at a time in order,
simulating 4 separate pages. This way all your data is actually kept on a
single page from the server's perspective, making it unnecessary to come up with a complex scheme to pass the data all over the place.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Miguel Dias Moura" <we****@27NOSPAMlamps.com> wrote in message
news:Op*************@TK2MSFTNGP09.phx.gbl...
Hello,

i created an ASP.net / VB page with a really big form.

Now i want to create 4 pages and in each one i will place 1/4 of the big
form.

The last page will send all the form values by email.

How can i send the form values from one page to the next one?

I looked everywhere and i wasn't able to make this work. I found a good
ASP.net / C code example in
http://www.dotnetbips.com/displayarticle.aspx?id=79. However, i am having problems in translating it to VB.
Yes, i did used the most 2 common translaters but i am still having
problems.

Is there someone that can help me doing this? 2 sample ASP.net / VB pages would be great.

Anyway, any help would be apreciated.

Thank You Very Much,
Miguel


Nov 18 '05 #4
Hi there,

Here's an example started for you.
Basically you create your form all on one page like normal, the insert
panels every quarter of the way (in your case), each with its own unique ID
(name) and then create a sub routine to handle the visible property of the
panel in question. Then you create some buttons to 'spark' the event...your
sub handles the visbility of the panels.

'Sub to handle panel in question's visibility based on checking the Button's
(ie: the Sender in this case) Text Property - which you set when you make
your button (as seen below)(maybe use a Select case here instead of mi
IF/END IF statement since you
are testing the same variable over)

Sub ChangePanelVisibility(Sender As Object, E As EventArgs)

If Sender.Text = "Show Panel One" Then
myFirstPanel.visible = true ' SET TO TRUE HERE
mySecondPanel.visible = false
myThirdPanel.visible = false
myFourthPanel.visible = false
End If

End Sub

<form ID="myForm" runat="server">

<asp:panel ID="myFirstPanel" CssClass="myCssClass" runat="server">
First section of form
</asp:panel>

<asp:panel ID="mySecondPanel" CssClass="myCssClass" runat="server">
Second section of form
</asp:panel>

<asp:panel ID="myThirdPanel" CssClass="myCssClass" runat="server">
Third section of form
</asp:panel>

<asp:panel ID="myFourthPanel" CssClass="myCssClass" runat="server">
Fourth section of form
</asp:panel>

<asp:Button id="ShowPanelOneButton" text="Show Panel One"
OnClick="ChangePanelVisibility" runat="server" CssClass="but" />
<asp:Button id="ShowPaneltwoButton" text="Show Panel Two"
OnClick="ChangePanelVisibility" runat="server" CssClass="but" />
etc...one button for each panel if you wish here...
</form>

Hope this helps, Lerp :)

"Miguel Dias Moura" <we****@27NOSPAMlamps.com> wrote in message
news:uH*************@TK2MSFTNGP12.phx.gbl...
Never did something like that.
Can anyone indicate me where can i find some information about it?

Thank You,
Miguel

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:eq**************@TK2MSFTNGP12.phx.gbl...
One way would be to keep your single page, and put each of the 4 sections
into its own panel. Then show & hide each panel one at a time in order,
simulating 4 separate pages. This way all your data is actually kept on a single page from the server's perspective, making it unnecessary to come

up
with a complex scheme to pass the data all over the place.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Miguel Dias Moura" <we****@27NOSPAMlamps.com> wrote in message
news:Op*************@TK2MSFTNGP09.phx.gbl...
Hello,

i created an ASP.net / VB page with a really big form.

Now i want to create 4 pages and in each one i will place 1/4 of the big form.

The last page will send all the form values by email.

How can i send the form values from one page to the next one?

I looked everywhere and i wasn't able to make this work. I found a good ASP.net / C code example in
http://www.dotnetbips.com/displayarticle.aspx?id=79. However, i am

having problems in translating it to VB.
Yes, i did used the most 2 common translaters but i am still having
problems.

Is there someone that can help me doing this? 2 sample ASP.net / VB pages would be great.

Anyway, any help would be apreciated.

Thank You Very Much,
Miguel





Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Paul | last post by:
I want to use sessions to cover myself in case the user switches off cookies so I am passing the session ID manually through a hidden input field. This is what I have so far. index.php page...
1
by: Paul | last post by:
Hmmm, didn't seem to work. I have set session.use_cookies = 1 and session.use_trans_sid = 1 in my php.ini file. Index.php contains:...
4
by: opt_inf_env | last post by:
Hello, I know three ways to pass variables form one page to another. The first one is to declare and set session variable. In this case if one goes to another page (by clicking on hyperlink or...
3
by: Miguel Dias Moura | last post by:
Hello, i created an ASP.net / VB page with a really big form. Now i want to create 4 pages and in each one i will place 1/4 of the big form. The last page will send all the form values by...
1
by: williamroy | last post by:
Hello, I've got a form that runs over 5 pages. I need the last page submit button to post all of the answers at one time from the previous 5 pages (to another server). I'd like to see the last...
7
by: Oleg Konovalov | last post by:
Hi, I am trying to pass a bunch of checked checkboxes (Javascript array) from page1 to the Java action class on subsequent web page (page2). (on page 1 I have a bunch of DB rows with a checkbox,...
3
by: Bill | last post by:
I'm using the POST method to submit a simple form html page with yes/no and checkbox fields to an asp response page which stores the values in a new dim string, then uses it to build a new table...
1
by: Steve | last post by:
After a few hours of trial and error I have reached the following conclusions, can you please tell me if I am right: I have 2 aspx pages both with the same master page and I wish to pass values...
5
by: jmartmem | last post by:
Greetings, I have built an Update Record Form in an ASP page. This form contains a number of fields, such as text boxes and menus, to name a few. Upon clicking the 'submit' button, I want the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.