Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 22nd, 2006, 04:27 AM
Registered User
Join Date: Jul 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Defining Application Root in web.config


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.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help with the Application.config file chobo2 C# 2008 aka C# 3.0 4 November 13th, 2008 07:47 AM
web.config vs. app.config darlo Visual Studio 2005 11 August 20th, 2008 07:23 AM
application config ms_kout ASP.NET 2.0 Professional 2 May 23rd, 2007 01:21 PM
defining connstring in web.config shs BOOK: Beginning ASP.NET 1.0 3 January 5th, 2007 06:25 AM
what's wrong with my web application or config junhuanzheng Servlets 2 March 11th, 2004 04:47 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.