Context.Items vs Context.Handler (passing values between pages)

V

VS_NET_DEV

Hi All,
There two ways of passing values between pages -
1) Context.Items.Add
2) Context.Handler (cast the page1 class etc)

I know for sure #2 does not store the values between requests.
How about #1. Does it store values between requests? i.e.

The Context.Items. collection
A)Is it like the Session variables?
OR
B) is it valid only for the duration of the request?

Thanks
Jenny2
 
G

Guest

Nope. the life span of the Context object of for one request. You'd have to put it in session state, view state, hidden input field, something like tha
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,968
Messages
2,570,154
Members
46,702
Latest member
LukasConde

Latest Threads

Top