I'm using url routing and I have a stylesheet that is being referenced on the destination page (inside a master page content template):
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<link href="css/actionmenu.css" rel="stylesheet" type="text/css" />
</asp:Content>
When the page is requested www.mysite.com/mypage it is Ok. However, if the page is requested as www.mysite.com/mypage/anotherpage - the reference to the stylesheet breaks. I tried:
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<link href="~/css/actionmenu.css" rel="stylesheet" type="text/css" runat="server"/>
</asp:Content>
and that didn't help.
My usual solution is to load the stylesheet in codebehind - however, is there another solution I'm missing?