473,396 Members | 2,039 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,396 software developers and data experts.

passing values from one web form to another web form

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

Similar topics

3
by: domeceo | last post by:
can anyone tell me why I cannot pass values in a setTimeout function whenever I use this function it says "menu is undefined" after th alert. function imgOff(menu, num) { if (document.images) {...
2
by: Gordon Hudson | last post by:
Hello Here is what I am trying to do: Make a hyperlink on a data entry form with its URL built from the values for fields in that entry on the database. So, I would go to record 65785 click...
4
by: Ron Rohrssen | last post by:
I want to show a dialog and when the form (dialog) is closed, return to the calling form. The calling form should then be able to pass the child form to another object with the form as a...
8
by: Johnny | last post by:
I'm a rookie at C# and OO so please don't laugh! I have a form (fclsTaxCalculator) that contains a text box (tboxZipCode) containing a zip code. The user can enter a zip code in the text box and...
1
by: Iyigun Cevik | last post by:
I'm passing my form to another page by using Server.Transfer method. I wrote readonly properties for each textbox in the first page, and i'm getting values of these textboxes from second page from...
2
by: Mani P.S via .NET 247 | last post by:
(Type your message here) Hi I'm new to asp.net and I need some help I have three forms with some textboxes.I want to pass the values of the textboxes of form1 and form2 to the third form For this...
8
by: Chris | last post by:
Hi, I have two froms (form1 and form2). I want to be able to pass values from form 1 to form2 and be able to use those values leter in form2. This is my code for form1 Private Sub...
13
by: Deano | last post by:
Apparently you can only do this with one value i.e Call MyAssetLocationZoom(Me!txtLocation, "Amend data") This runs; Public Sub MyAssetLocationZoom(ctl As Control, formName As String) On...
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...
3
by: DaveTWS | last post by:
I am making the switch from C++ to C#, and struggling as I cannot use pointers! I have a form (A) into which the user types some data. Depending upon the data entered Form A may then call another...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...

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.