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

passing values from one web form to another web form

P: n/a
I have a web form welcome.asp and it has three textboxes and two
dropdown list. It has one button called Submit.

when I click that button it should pass all the data from text boxes
and dropdown lists to another web form named processform.aspx.

So, my question is how can I pass the data from one web form to
another web form by clicking abutton.

Thanks

Jun 11 '07 #1
Share this Question
Share on Google+
5 Replies


P: n/a
If you are using Server.Transfer method or cross-page posting, you can use
PreviousPage property to access the originating page.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
<bb****@yahoo.comwrote in message
news:11**********************@n15g2000prd.googlegr oups.com...
I have a web form welcome.asp and it has three textboxes and two
dropdown list. It has one button called Submit.

when I click that button it should pass all the data from text boxes
and dropdown lists to another web form named processform.aspx.

So, my question is how can I pass the data from one web form to
another web form by clicking abutton.

Thanks

Jun 11 '07 #2

P: n/a
If this is a form post, you also have access to either the form or the query
string.
"Eliyahu Goldin" <RE**************************@mMvVpPsS.orgwrote in
message news:OZ**************@TK2MSFTNGP02.phx.gbl...
If you are using Server.Transfer method or cross-page posting, you can use
PreviousPage property to access the originating page.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
<bb****@yahoo.comwrote in message
news:11**********************@n15g2000prd.googlegr oups.com...
>I have a web form welcome.asp and it has three textboxes and two
dropdown list. It has one button called Submit.

when I click that button it should pass all the data from text boxes
and dropdown lists to another web form named processform.aspx.

So, my question is how can I pass the data from one web form to
another web form by clicking abutton.

Thanks


Jun 11 '07 #3

P: n/a
On Jun 11, 12:15 pm, "Eliyahu Goldin"
<REMOVEALLCAPITALSeEgGoldD...@mMvVpPsS.orgwrote:
If you are using Server.Transfer method or cross-page posting, you can use
PreviousPage property to access the originating page.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]http://msmvps.com/blogs/egoldin

<bba...@yahoo.comwrote in message

news:11**********************@n15g2000prd.googlegr oups.com...
I have a web form welcome.asp and it has three textboxes and two
dropdown list. It has one button called Submit.
when I click that button it should pass all the data from text boxes
and dropdown lists to another web form named processform.aspx.
So, my question is how can I pass the data from one web form to
another web form by clicking abutton.
Thanks- Hide quoted text -

- Show quoted text -
When I use Server.Transfer["ProcessForm.aspx"]; my btn_click event
it gives me following error message

only assignments, call, increment, decrement, and new object
expressions can be used as a statement

cannot apply indexing with [] to an expression of type 'method group'

Jun 11 '07 #4

P: n/a
Ysgrifennodd bb****@yahoo.com:
I have a web form welcome.asp and it has three textboxes and two
dropdown list. It has one button called Submit.

when I click that button it should pass all the data from text boxes
and dropdown lists to another web form named processform.aspx.

So, my question is how can I pass the data from one web form to
another web form by clicking abutton.

Thanks
I take the view that computer programs are usually modeling some real
world object or objects. I therefore construct server side object(s)
that store information entered via Pages in its/their state variables
(fields/properties/attributes).

On submit, I do any validation of the data that is required, store the
data in the object(s) and then store a reference to the object(s) in the
Session.

It is then a simple matter to retrieve that object and its data from the
Session in any subsequent form.

HTH
Peter
Jun 11 '07 #5

P: n/a
ASP.NET provides a plethora of ways to pass data between pages.
I've detailed virtually every technique here:
http://SteveOrr.net/articles/PassData.aspx

--
I hope this helps,
Steve C. Orr,
MCSD, MVP, CSM, ASPInsider
http://SteveOrr.net

<bb****@yahoo.comwrote in message
news:11**********************@n15g2000prd.googlegr oups.com...
>I have a web form welcome.asp and it has three textboxes and two
dropdown list. It has one button called Submit.

when I click that button it should pass all the data from text boxes
and dropdown lists to another web form named processform.aspx.

So, my question is how can I pass the data from one web form to
another web form by clicking abutton.

Thanks
Jun 12 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.