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

Passing Values Between ASP.net pages

P: 1
I am submitting a form to another page in asp.net using post method.In target file how to get previous page input data
Mar 17 '14 #1
Share this Question
Share on Google+
1 Reply


Frinavale
Expert Mod 5K+
P: 9,731
Say you have FormA and FormB.

You can submit your page on FormA to the server side code that handles FormA, store the information into Session or cookies, and then use the Response.Redirect Method to redirect the user to FormB. From there FormB can grab the information provided on FormA and use it for it's own purposes.

You could also use JavaScript to change the action of the HTML Form before submitting the form...that way your FormB server-side code will get all of the information provided on FormA.

I would recommend the first suggestion though. It is easiest and if there is anything invalid it could prevent the user from proceeding to FormB.

-Frinny
Mar 18 '14 #2

Post your reply

Sign in to post your reply or Sign up for a free account.