If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Store object in session

View Poll Results: how can i pass an object?
in session? 1 100.00%
other? 0 0%
Voters: 1. You may not vote on this poll

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-05-05, 07:05
fall_cky fall_cky is offline
Registered User
 
Join Date: Mar 2005
Posts: 1
Store object in session

i hav created a class named book, then i create an instance of it in page1.asp, and i want to use it in page2.asp.

can any1 pls tell me how to do that?

thanks alot
Reply With Quote
  #2 (permalink)  
Old 03-06-05, 17:01
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
Depending on what the class contains I would probably pass/store it in session.
Reply With Quote
  #3 (permalink)  
Old 03-07-05, 17:31
Bullschmidt Bullschmidt is offline
Guru
 
Join Date: Jun 2003
Location: USA
Posts: 1,032
I generally think of a shopping cart as a fancy name for a session array. And here is a good resource that includes how to use session arrays:

Session Object
http://msdn.microsoft.com/library/de..._vbom_seso.asp
__________________
J. Paul Schmidt, Freelance Web and Database Developer
www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On