Roman,
Both has their advantages and disadvantages. And you can use both
depending on your scenario. Context.Items, correspond to a single http
request, so if you are navigating from one page to another using
Response.Redirect, you can not use Context.Items. Since Response.Redirect
involves two http requests. However, if you choose to use Server.Transfer,
which consists of one single HTTP request, you could use Context.Items. So,
as I said, Context is only for a single http request. So, you can not reuse
the Context items bag in other pages later. So, this does not involve any
memory in your worker process application domain memory.
Where as Session, though it is stored in the application domain's memory, it
can be reused through out your application, which can span multiple http
requests. Session can be stored in the database too, if you would like to.
Though session can eat up your memory if not used properly, it can be used
among multiple pages and multiple requests
So, it all depends on your situation and how you want to use it
Hope I made sense with my explanation. Let me know if you have more
questions
--
Kumar Reddi
http://kumarreddi.blogspot.com
"Roman" <sp**@spam.de> wrote in message news:cp*********@online.de...
Which is better when passing values between forms?