How to get directory of App_Data ?

Discussion in 'ASP .Net' started by Polaris, Jun 12, 2007.

  1. Polaris

    Polaris Guest

    Hi Experts:

    I'm using ASP.NET 2.0.

    Is there a way to get the directory (full path) of the "App_Data" foler at
    runtime ?

    Thanks in Advance!
    Polaris
     
    Polaris, Jun 12, 2007
    #1
    1. Advertising

  2. Polaris

    Andrea Zani Guest

    Polaris <> ha scritto:
    > I'm using ASP.NET 2.0.
    >
    > Is there a way to get the directory (full path) of the "App_Data"
    > foler at runtime ?


    path=System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory,"App_data")

    > Thanks in Advance!
    > Polaris


    --
    AZ [Microsoft - .NET MVP]
    Mia Home page: http://ciclismo.sitiasp.it
    Asp.Net community: http://www.aspitalia.com
    Il mio blog: http://blogs.aspitalia.com/az
     
    Andrea Zani, Jun 12, 2007
    #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. Sushi

    Accessing App_Data from App_Code

    Sushi, Nov 2, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    18,161
    thesteef
    Jun 9, 2008
  2. Jeppe Jespersen
    Replies:
    3
    Views:
    744
    Jeppe Jespersen
    Jul 10, 2007
  3. mc
    Replies:
    6
    Views:
    562
  4. Johnson

    Okay to Get Rid of App_Data Folder?

    Johnson, Nov 12, 2008, in forum: ASP .Net
    Replies:
    2
    Views:
    737
    Juan T. Llibre
    Nov 12, 2008
  5. Jeppe Jespersen

    How do I avoid the App_Data directory?

    Jeppe Jespersen, Jul 10, 2007, in forum: ASP .Net Security
    Replies:
    0
    Views:
    124
    Jeppe Jespersen
    Jul 10, 2007
Loading...

Share This Page