Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 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 October 8th, 2004, 12:29 PM
Authorized User
 
Join Date: Oct 2004
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to pass an object between aspx pages

Hi all,

Are there any way to pass an object between aspx pages. Currently, I have to break my object into a string and pass as query string or hidden field. Any idea will be appreciated


Thanks in advance

John

 
Old October 8th, 2004, 12:50 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

You can put it into a session variable. Then set the session variable to nothing once you retrieve it.

 
Old October 8th, 2004, 05:09 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

http://www.dotnetjohn.com/articles.aspx?articleid=142
 
Old October 9th, 2004, 11:52 AM
Authorized User
 
Join Date: Oct 2004
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

i use cache.

wagner reatto
 
Old October 10th, 2004, 01:09 PM
Authorized User
 
Join Date: Oct 2004
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Wagner,

Thanks for you input, but can you more specific how to use cache to pass object between pages? BMains's idea is very interesting.

Thanks all.

Quote:
quote:Originally posted by wagner reatto
 i use cache.

wagner reatto
 
Old October 12th, 2004, 12:00 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

You can use the Cache object in the System.Web.Caching namespace to add an item to the cache. Cache stores objects/info in memory and retains the information among page requests. It is similar to the application variable in that it is available to all users, so be careful with that.

http://www.dotnetjohn.com/articles.aspx?articleid=134

Brian

Brian
 
Old October 12th, 2004, 03:34 PM
Authorized User
 
Join Date: Oct 2004
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

jdang67, i am so sorry for not responding your question, 'cause i saw it now.

bmains gave you a cool link, enjoy!

see you , and sorry again

wagner reatto





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 between different pages dipanjan22 ASP.NET 1.x and 2.0 Application Design 4 September 30th, 2007 02:02 PM
can I ovveride aspx pages? shenku ASP.NET 1.x and 2.0 Application Design 1 June 6th, 2005 07:04 AM
HowTo Pass Form data from Page1.aspx to Page2.aspx dati ASP.NET 1.0 and 1.1 Basics 6 January 27th, 2004 06:57 AM





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