Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Context.Items vs Context.Handler (passing values between pages)

Reply
Thread Tools

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

 
 
VS_NET_DEV
Guest
Posts: n/a
 
      05-24-2004
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
 
Reply With Quote
 
 
 
 
=?Utf-8?B?Sm9obg==?=
Guest
Posts: n/a
 
      05-24-2004
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

 
Reply With Quote
 
 
 
 
jenny
Guest
Posts: n/a
 
      05-25-2004




*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
Reply

Thread Tools

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Could not open Design view. Quote values differently in a '<%..."values"...%>' block. Rob Meade ASP .Net 2 08-10-2004 12:46 PM
Can you persist table cell values like you do with form field values? Richard Dixson ASP .Net 2 05-18-2004 01:11 PM
Can you persist table cell values like you can do with form field values? Richard Dixson ASP .Net 1 05-18-2004 03:47 AM
Comparing values in 2 textfiles and returning the missing values Jorgen Gustafsson Perl 4 12-12-2003 09:09 AM
Re: Config values or Application values - which is better/faster? S. Justin Gengo ASP .Net 2 08-20-2003 04:08 PM



Advertisments