Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,160,561 members, 7,843,753 topics. Date: Wednesday, 29 May 2024 at 10:40 AM

Submitting A Form And Passing Form Values To Another Page In Asp.net. - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / Submitting A Form And Passing Form Values To Another Page In Asp.net. (1851 Views)

C# - Capturing File Name From A FileUpload Control In Asp.net / Fingerprint Programming In ASP.NET / Inserting And Retrieving Images To/From Database In ASP.NET (2) (3) (4)

(1) (Reply) (Go Down)

Submitting A Form And Passing Form Values To Another Page In Asp.net. by AjaraEwuro: 4:23pm On Jun 03, 2009
In classic ASP, you can pass form values to another page for validation and processing by using the atribute action = ", aspx". The ", aspx" page will process the form content from the first page, the page holding the form.

However, in asp.net - i think the action = ", aspx" attribute is no longer supported, often ignored when used. What is the best way to pass the form content to another page then, because as a default, the form contents are passed and validatable on the same page where the form is, but I want them passed to another page, any one here can help?

On the receiving page, I want to validate the values and use them as values in an ado.net query to search a database on the second receiving page.
Re: Submitting A Form And Passing Form Values To Another Page In Asp.net. by Kobojunkie: 7:11pm On Jun 03, 2009
Re: Submitting A Form And Passing Form Values To Another Page In Asp.net. by BigStar1(m): 3:24pm On Jun 05, 2009
you will pass it through constructor . this is done by creating a new constructor ofthe sending form
Re: Submitting A Form And Passing Form Values To Another Page In Asp.net. by javabeasns: 7:54pm On Jun 05, 2009
The abililty to post values entered into a form to another page involves some mechanism since core html is stateless. In ASP.net 2.0 above, u have to maintain state by using viewstate or sesion variables. These classes form the basis of the multipage control.
You can aslo use the crosspage postback feature or use querystrings to pass around form values from page to page.
If you are not too competence on these, u simply can enter the values into a database and retrieve the value from the database in the other page. The Sqldatasource control with say the Listview (.net 3.5 specific) will help.
If u need more help, call me on 08035133522.
Thanks David
Re: Submitting A Form And Passing Form Values To Another Page In Asp.net. by AjaraEwuro: 8:58pm On Jun 05, 2009

(1) (Reply)

Bouncing Back After My Last Startup Ended Abruptly. / Junior Software Developer Intern In Lagos 31k - 50k / I Need A Dev For Small Work

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 12
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.