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. 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. Charles A. Lackman
    Replies:
    1
    Views:
    1,344
    smith
    Dec 8, 2004
  2. SpamProof
    Replies:
    0
    Views:
    553
    SpamProof
    Oct 21, 2003
  3. Peng Yu
    Replies:
    0
    Views:
    333
    Peng Yu
    Nov 6, 2009
  4. topramen
    Replies:
    1
    Views:
    104
    Anthony Jones
    Feb 1, 2007
  5. Bing Du

    test whether or not a web page work

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

Share This Page