test whether a path is in public web directory?

Discussion in 'ASP .Net' started by flipdoubt, Sep 3, 2005.

  1. flipdoubt

    flipdoubt Guest

    Are there any specialized methods for determining whether a path or UNC points
    to a location within a site's web directories? Are there any methods for
    turning an absolute path into a relative URL?

    My app has UNCs stored in a database and needs to serve the files that the
    UNC points to. If the UNC is within the site, I just need to return a relative
    path. If it isn't, I need to copy the file to a public cache and return a
    relative path to the cached file.
     
    flipdoubt, Sep 3, 2005
    #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. Charles A. Lackman
    Replies:
    1
    Views:
    1,798
    smith
    Dec 8, 2004
  2. SpamProof
    Replies:
    0
    Views:
    996
    SpamProof
    Oct 21, 2003
  3. =?Utf-8?B?SmVmZiBCZWVt?=

    physical path to virtual path under virtual directory

    =?Utf-8?B?SmVmZiBCZWVt?=, Aug 1, 2007, in forum: ASP .Net
    Replies:
    4
    Views:
    1,259
    Eliyahu Goldin
    Aug 1, 2007
  4. Bob
    Replies:
    1
    Views:
    1,598
    Mark Fitzpatrick
    Feb 8, 2008
  5. Skybuck Flying

    Call oddities: &Test() vs &Test vs Test

    Skybuck Flying, Oct 4, 2009, in forum: C Programming
    Replies:
    1
    Views:
    1,053
    Skybuck Flying
    Oct 4, 2009
  6. Peng Yu
    Replies:
    0
    Views:
    467
    Peng Yu
    Nov 6, 2009
  7. topramen
    Replies:
    1
    Views:
    166
    Anthony Jones
    Feb 1, 2007
  8. Bing Du

    test whether or not a web page work

    Bing Du, Jan 28, 2004, in forum: Perl Misc
    Replies:
    2
    Views:
    122
    Sherm Pendley
    Jan 28, 2004
Loading...