That's about right as Ignacio points out. The reason for these differences
is that the Httpcontext call allows the caller to access the context object
outside of a calling page, like in a webservice for instance.
--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET - MS Press
Professional VSTO 2005 - Wrox/Wiley
OWC Black Book
www.lulu.com/owc
"Ignacio Machin ( .NET/ C# MVP )" <machin TA laceupsolutions.comwrote in
message news:us**************@TK2MSFTNGP05.phx.gbl...
Hi,
"Mike P" <mi*******@gmail.comwrote in message
news:u1**************@TK2MSFTNGP05.phx.gbl...
>What is the difference between putting an object into the cache this way
:
Cache["ObjName"]
and this way :
HttpContext.Current.Cache.Add
I think it's the same. Page.Cache is just a wrapper around
HttpContext.Current.Cache.
In the same way Add/Get are methods that are called as needed from the
Item property.