Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts

    Accessing information in parent applications (C#)

    I have a virtual directory in IIS ("/reports") that needs to access information in the global.asax of the parent application ("/") and I was wondering how I could do that, if it is even possible.

    My global.asax right now has the classname Globals. And it has several public variables declared in it that are used through out the site.

    Now, I was wondering if and how I could access them from a sub app.

    Am I making any sense?
    OracleGuy

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    41° 8' 52" N -95° 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Can't you inherit the class?

    <rambling>deleted by moderator (me)</rambling>

    Have you tried it the same way you would use a global.asa? If it works the same way, as long as you don't have another global.asa in your subfolder, then it applies to child folders... I'm thinking that it would probably work if you just included it in your project as a .dll if you could accomplish the same things that way, but I'm not clear on the desired result, or whether that works the same way with .NET.

    Considering some of the lame things that Microsoft has continued to do (for instance use proprietary JScript in the auto-generated client-side code in Visual Studio.NET), I'd at least give it a try.

    allida77 seems to be pretty up on this stuff...

    Man, I gotta get time to mess with this stuff more, in between fixing classic asp scripts at work, playing guitar in a band, recording with my new toys, and writing javascripts for people - not to mention visiting this forum!
    Last edited by whammy; 12-11-2003 at 05:24 AM.
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •