you can always use Server.MapPath("~") to ger the real path, but then you will need to write a code that would put it into HREF of the <LINK> tag
George
"PJ6" <no****@nowhere.net> wrote in message news:%2****************@TK2MSFTNGP09.phx.gbl...
OK this works -
<LINK rel="stylesheet" type="text/css" href="/TestWebApp/Styles/Styles.css">
So how would I get root path and name IIS is using to serve the project
(which may be a different name than what it's called in VS)? I can probably
make the assumption if I have to though.
Thanks for your help,
Paul
"George" <no****@hotmail.com> wrote in message
news:e5**************@TK2MSFTNGP15.phx.gbl...
The problem is that "~" is replaced by ASP.NET engine.
Your HTML is not going through the ASP.NET as it does not even try to
interpret what you have wrote if there is no runat="server".
The solution my depends on you problem.
1. If you are working on the website that suppose to work of the ROOT and
you are developing in the folder. I can see why you do not want to hardcode
the project path. And
My article on codeproject might help you with it
http://www.codeproject.com/aspnet/Multisite.asp
2. You can write the Request.Filter which will convert all "~" to the
project path. But then be careful about not having "~" that is suppose to be
"~".