Within my URL routing setup, I have a master page content template that references a stylesheet on the destination page:
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<link href="css/actionmenu.css" rel="stylesheet" type="text/css" />
</asp:Content>
Everything works fine when the page is requested at www.mysite.com/mypage. However, if the page is accessed through www.mysite.com/mypage/anotherpage, the link to the stylesheet breaks. I attempted to fix this by using:
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<link href="~/css/actionmenu.css" rel="stylesheet" type="text/css" runat="server"/>
</asp:Content>
Unfortunately, this approach did not resolve the issue.
Usually, I would load the stylesheet in the codebehind as a workaround. However, I am wondering if there is another solution that I may be overlooking?