469,626 Members | 1,016 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,626 developers. It's quick & easy.

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 1643
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Paul | last post: by
1 post views Thread by Paul | last post: by
4 posts views Thread by opt_inf_env | last post: by
7 posts views Thread by Oleg Konovalov | last post: by
1 post views Thread by Steve | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.