Best Place to Put Class Accessible to All "Folders"

Discussion in 'ASP .Net' started by Johnny Meredith, Jun 8, 2005.

  1. Warning: Tenderfoot

    I'm playing around with ASP.Net 2.0 b2. The web app I've created has a
    default, login, recovery, etc. pages in the root and two folders
    accessible to authenticated users only. I have a simple class that
    needs to be accessible to the two subfolders mentioned above. I placed
    this class in App_Code and declared it Friend/Internal. However, I
    can't access it in the two subfolders unless it's declared Public.

    I thought Friend/Internal meant that I could access the class from
    anywhere in this project, but not from outside it. Should I be using
    App_GlobalResources, App_LocalResources folders (or something else), or
    am I just wrong regarding Friend/Internal classes?

    Johnny Meredith, Jun 8, 2005
    1. Advertisements

  2. Johnny  Meredith

    Scott Allen Guest

    Hi Johnny:
    Internal means you can access the class from inside the same assembly.
    Unfortunately stuff in App_Code goes into one assembly and ASPX
    webforms code goes into a second.
    Scott Allen, Jun 8, 2005
    1. Advertisements

  3. Thanks for your help.
    Johnny Meredith, Jun 8, 2005
    1. Advertisements

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.