locked
virtual directory RRS feed

  • Question

  • Hi!

    Could someone please help me with this (what seems to me to be a simple question) problem.

    I have a virtual directory in the root of my app called PhotoGallery ie ~/PhotoGallery. It points to a physical directory in my website.
    So... I need to get the server path (not physical) to the directory that the virtual directory points to. Sounds simple enough but I can't find out how to for the life of me!

    Any help would be much appreciated.

    Thanks
    Sean

    (C#)
    • Moved by nobugz Thursday, May 21, 2009 3:25 PM forums.asp.net (From:.NET Base Class Library)
    Thursday, May 21, 2009 2:05 PM

All replies

  • Hi,
      Please try using Server.MapPath("Your Folder Name here");

    -- Thanks Ajith R [Remember to Mark as Answer if it is Helpful.]
    Thursday, May 21, 2009 2:23 PM