Subject: How to pass an object between aspx pages
Posted By: jdang67 Post Date: 10/8/2004 12:29:43 PM
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

Reply By: jbenson001 Reply Date: 10/8/2004 12:50:28 PM
You can put it into a session variable.  Then set the session variable to nothing once you retrieve it.

Reply By: bmains Reply Date: 10/8/2004 5:09:34 PM
http://www.dotnetjohn.com/articles.aspx?articleid=142
Reply By: wagner reatto Reply Date: 10/9/2004 11:52:40 AM
i use cache.

wagner reatto
Reply By: jdang67 Reply Date: 10/10/2004 1:09:24 PM
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:
Originally posted by wagner reatto

i use cache.

wagner reatto



Reply By: bmains Reply Date: 10/12/2004 12:00:52 PM
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
Reply By: wagner reatto Reply Date: 10/12/2004 3:34:50 PM
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

Go to topic 20570

Return to index page 747
Return to index page 746
Return to index page 745
Return to index page 744
Return to index page 743
Return to index page 742
Return to index page 741
Return to index page 740
Return to index page 739
Return to index page 738