Wrox Programmer Forums
|
ASP.NET 1.x and 2.0 Application Design Application design with ASP.NET 1.0, 1.1, and 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.x and 2.0 Application Design section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 29th, 2007, 09:57 PM
Authorized User
 
Join Date: Jul 2007
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to pass values between different pages

This is basically a discussion thread. I want to discuss here what are the ways by which you can access form values between different pages in ASP.NET. One is you can do by session and sometimes by setting cookies. What are the other ways available?

 
Old September 30th, 2007, 10:50 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

You could:
- pass them to another page in the querystring
- write them to some persistent medium (database, file)


-Peter
 
Old September 30th, 2007, 12:28 PM
Authorized User
 
Join Date: Jul 2007
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No, actually I wanted other options than database. Thanks! for your answer. The use of temp files didn't struck me.

 
Old September 30th, 2007, 12:44 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Files would be technically possible, but I'd recommend highly that you do not user that method. It will be slower than all the other options and depending on how you do it you could end up with lots of problems. If you are developing for a site that will be hosted on a web farm, then files are out of the question because of distributed processing. Why are you opposed to the database option?

-Peter
 
Old September 30th, 2007, 02:02 PM
Authorized User
 
Join Date: Jul 2007
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

No not actually opposed! I want to store the information there temporary and once confirmed by the user I will feed it to the database. And in that way I could reduce unnecessary pressure on the database and also on the SQL queries. I prefer session for it was available from classic asp.
Anyway thanks planoie for ur response.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Pass values between pages msbsam ASP.NET 2.0 Professional 1 July 7th, 2008 06:13 AM
How to pass values from one iframe to another raaj PHP How-To 0 February 28th, 2007 01:47 AM
how to pass user info to diffrent pages using sess method PHP How-To 3 February 27th, 2006 01:08 AM
pass userid password across pages in ASP rajayak Classic ASP Databases 2 June 23rd, 2003 09:18 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.