limit subdirectories in ViewPaths

2 posts, 0 answers
  1. Matt DiPietro
    Matt DiPietro avatar
    23 posts
    Member since:
    Nov 2009

    Posted 05 Apr 2013 Link to this post

    Is anyone aware of any way to add a Directory to the ViewPaths, but remove a specific set of sub-directories from the tree?

    For instance, my web application will be deployed to multiple web servers that may have different sub-directories in the root of D.  To account for those variances, I want to be able to just add D:\ to the ViewPath so the FileExplorer will automatically account for sub-directories that may be on one server but not another, but I want to remove "D:\Source" on all servers.

    Does anyone know of a way to achieve this?
  2. Matt DiPietro
    Matt DiPietro avatar
    23 posts
    Member since:
    Nov 2009

    Posted 05 Apr 2013 Link to this post

    I figured out a way to handle it in my custom FileSystemProvider.vb file.  I just modified the GetDirectories() method to exclude specific sub directories.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top