I am using a usercontrol to maintain my meta tags on my site. In the usercontrol I link to the style sheet. Which is fine so long as the user control is used in pages at the root of the site however if I use it in a page in the admin folder I need to change the path to the style sheet eg ../style.css rather than style.css. Is there anyway using asp.net to map the location of the style sheet so it can be found from where anywhere.
Absolute paths are never bad...unless you hard code them. That is why I suggest storing the value of your root domain name in the Web.Config or other place where you can reference it and then plug it into your code.
store something like WebRoot = "http://www.example.com"
So, if you ever change domain names you just go to the config file and change the value instead of througout your code. There are also routines to parse out the domain name root from the server variables, etc.