coder389 0 Newbie Poster

In my web.config file I have to add a key, but I want that its value should be relative to the location of the folder. How can I get it?

I have:

<add key="FilePaths" value="c:\Folder1\Folder2\"/>

But I want that I only mention "Folder2" and its starting path is get dynamically. Something like:

<add key="FilePaths" value="~\Folder2\"/>