ASP.NET: urls in plain html files can't find app root -
a client i'm working insists on including plain-jane html file in asp.net app , can't link urls work properly. here's example:
<li><a class="nav_history2" href="/history.html">history</a></li>
it finds server root (as expect) how modify respect app root? i'm looking equivalent ~. client has tried ../ claims still finds root. how possible? should please?
i don't have ability run on prod server, can't see problem directly.
----- edit -----
if follow suggestions given in first 2 answers work if turn html page aspx, far not in raw html file.
if remember correctly, need make asp.net actively aware of tag, , ~ symbol work. try:
<a class="nav_history2" runat="server" href="~/history.html">
Comments
Post a Comment