By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,542 Members | 1,740 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,542 IT Pros & Developers. It's quick & easy.

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

P: n/a
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?
B) is it valid only for the duration of the request?

Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies

P: n/a
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

Nov 18 '05 #2

P: n/a

*** Sent via Developersdex ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.