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. 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.