Groups | Blog | Home
all groups > dotnet faqs > october 2005 >

dotnet faqs : how to make Global objects available to a class


psawant NO[at]SPAM gmail.com
10/15/2005 11:23:16 PM
Hi ALL!

I am feeling kinda lost here.How do i make global objects available to
a class.

e.g i want to make some objects available like the httpcontext object
available if you run a component under asp.net.

Thanks in advance

ps
Sergey Poberezovskiy
10/23/2005 11:07:02 PM
In case of httpcontext you can use static/shared in vb method

System.Web.HttpContext.Current

to return reference to the current context.

HTH

[quoted text, click to view]
AddThis Social Bookmark Button