References Style Sheets from a sub directory

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Philip Poole (philip_at_dontreply.org)
Date: 09/22/04


Date: Wed, 22 Sep 2004 15:47:17 +0100

Hello everyone,

I hope you can help me, I have trawled the newgroups for an answer for this
and could not find one.

I have set up a template aspx page which consists of a number of user
controls, the template page contains a style *** which all controls use.
However when I stick the template aspx into a subdirectory, it looses the
links to the style ***.

Question 1) Apart from manually changing the link can I get ASP.net to find
the path autmotically, I have tried adding runat="server" to the LINK tag
but asp does not like it.

Next point: The css style *** contains links to images, so even if i
change the relative path of the style *** manually it cannot find the
images (as it is expecting to find them in a image directory within the
subfolder) .

Question 2) Is there any way to put relevtive paths in the style *** so
that asp.net can change to the correct location, i..e "~/images/image.jpg".

Kind Regards

Philip


Quantcast