Depends if your dealing with client or server code.
On the server side here are some options (off the top of my head):
1. Session variables
2. querystring
3. Response.write
4. Database
Your selection is going to depend on how you are calling the page and your environment.
On the client side here are some options (off the top of my head):
1. retrieve from the server side (in which case use one of the above option and store the information in a variable).
2. querystring (can be read through
js)
3. cookies
Let me know if you need help with any one particular option or give me more information on your architecture and I can assist you further.
Yehuda