referencing Global Object in code behind class

Discussion in 'ASP .Net' started by sonny.stevenson@gmail.com, Apr 17, 2007.

  1. Guest

    I created a global object with the following in the global.asax class

    <object id="mainObj" runat="server"
    class="global_Object.MAIN" scope="Application" />

    I have been searching online for a while and I cannot for the life of
    me find any resources. How can I reference the global instance
    mainObj from any code behind class??

    thx,

    sonny
     
    , Apr 17, 2007
    #1
    1. Advertisements

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. Ben Miller [msft]

    Re: Code Behind vs. no code behind: error

    Ben Miller [msft], Jun 27, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    826
    Alphonse Giambrone
    Jun 28, 2003
  2. =?Utf-8?B?Q2FybG8gTWFyY2hlc29uaQ==?=

    Fire Code behind code AND Javascript code associated to a Button Click Event

    =?Utf-8?B?Q2FybG8gTWFyY2hlc29uaQ==?=, Feb 10, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    21,760
    =?Utf-8?B?Q2FybG8gTWFyY2hlc29uaQ==?=
    Feb 11, 2004
  3. Mark Hageman

    Referencing a DLL from code-behind

    Mark Hageman, May 11, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    962
    Mark Hageman
    May 11, 2004
  4. =?Utf-8?B?SWFuIE1lYWtpbg==?=

    Problem referencing other classes from ASP.NET code behind class

    =?Utf-8?B?SWFuIE1lYWtpbg==?=, Feb 18, 2005, in forum: ASP .Net
    Replies:
    5
    Views:
    1,139
    tittlejoseph
    Sep 14, 2006
  5. Daniel Manes

    Code-Behind Pain in the Behind!

    Daniel Manes, Jun 10, 2005, in forum: ASP .Net
    Replies:
    11
    Views:
    943
  6. John

    Non-code behind to code behind

    John, Feb 19, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    719
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=
    Feb 19, 2007
  7. John Kotuby
    Replies:
    2
    Views:
    973
    John Kotuby
    May 4, 2007
  8. William Gower

    Referencing a datagrid from code-behind

    William Gower, Apr 23, 2004, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    146
    William Gower
    Apr 23, 2004
Loading...