Defining Application Root in web.config
Hello,
When developing on my local machine, I can set up virtual directories for a particular website for different clients. In the Template and other files, I reference a links with something like href="~/contact.aspx" which, with the "tilde" in there, points to the root of the website.
Now, on my local machine with a virtual directory defined, this works fine. However, if I am showing this to a client and have it located under a "clients/[client name]" folder on my company website, it still tries to reference the root of the website, which clearly would not contain the files. My company website is hosted and I cannot create a virtual directory.
So my question is can I tell ASP.NET to look at a specific folder as the root of the website by defining a value in the web.config file? If so, how would I do that and what value?
Thank you for your time and assistance.
|