how to get application path ?

Discussion in 'ASP .Net' started by Lloyd Dupont, Jul 18, 2003.

  1. Lloyd Dupont

    Lloyd Dupont Guest

    when I'm in a page or a control I could write
    MapPath(anUrl);

    to get local (on disk) path of an URL.
    however I'm writting an HttpHandler, and I struggle to find similar
    functionality.

    any thought ?
     
    Lloyd Dupont, Jul 18, 2003
    #1
    1. Advertising

  2. Hi

    Use Request.ServerVariable("APPL_PHYSICAL_PATH") to get
    physical path


    HTH
    Ravikanth


    >-----Original Message-----
    >when I'm in a page or a control I could write
    >MapPath(anUrl);
    >
    >to get local (on disk) path of an URL.
    >however I'm writting an HttpHandler, and I struggle to

    find similar
    >functionality.
    >
    >any thought ?
    >
    >
    >.
    >
     
    Ravikanth[MVP], Jul 18, 2003
    #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. Arjen

    How to get the application path

    Arjen, Jul 27, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    394
    Arjen
    Jul 27, 2003
  2. James
    Replies:
    2
    Views:
    13,925
    Andrew Thompson
    Dec 7, 2004
  3. marss
    Replies:
    5
    Views:
    1,005
    marss
    Sep 13, 2007
  4. dude
    Replies:
    5
    Views:
    1,717
    Jussi Piitulainen
    Mar 17, 2011
  5. haiwen
    Replies:
    1
    Views:
    379
    haiwen
    Jan 28, 2004
Loading...

Share This Page