how to make Global objects available to a class

Discussion in 'ASP .Net' started by psawant@gmail.com, Oct 16, 2005.

  1. Guest

    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
    , Oct 16, 2005
    #1
    1. Advertising

  2. In case of httpcontext you can use static/shared in vb method

    System.Web.HttpContext.Current

    to return reference to the current context.

    HTH

    "" wrote:

    > 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
    >
    >
    =?Utf-8?B?U2VyZ2V5IFBvYmVyZXpvdnNraXk=?=, Oct 24, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. E11
    Replies:
    1
    Views:
    4,736
    Thomas Weidenfeller
    Oct 12, 2005
  2. Tom Brown

    how do I make a class global?

    Tom Brown, Apr 27, 2006, in forum: Python
    Replies:
    1
    Views:
    233
    harold
    Apr 27, 2006
  3. 7stud
    Replies:
    11
    Views:
    683
    Dennis Lee Bieber
    Mar 20, 2007
  4. Andy B.
    Replies:
    0
    Views:
    369
    Andy B.
    Dec 23, 2008
  5. Taras_96
    Replies:
    7
    Views:
    812
    Taras_96
    Oct 27, 2009
Loading...

Share This Page