Hi Buz,
If you are coding in a certain util class rather than in the page's
codebehind or other ASP.NET components, you won't get the intellisene when
directly type "Session" because the Session is the buildin member of Page
or HttpContext. However, in dotnet, the HttpContext class has a
shared(static) property "Current" which hold the refernce to the current
request's Context. So if you want to retrieve the ASP.NET buildin objects
of the Request's context such as Session, Request, Response... you can make
use of the "Current" member as below:
HttpContext.Current.Session ...
HttpContext.Current.Request...
HttpContext.Current.Response....
....
For more detailed info on the HttpContext and the "Current" property,
please view the following reference in MSDN:
#HttpContext.Current Property
http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemWebHttpContext
ClassCurrentTopic.asp?frame=true
#HttpContext Class
http://msdn.microsoft.com/library/en-us/cpref/html/frlrfSystemWebHttpContext
ClassTopic.asp?frame=true
Thanks.
Regards,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx