I'm using literal to implement css, so as to have the css class vary depending on the page I'm on, the css being applied to some "a" tags also.
That bit (variable css on a tags) seems to be working for me at present for some reason, but the code breaks the use of the ~/
within links...
Does anyone know if there any consequences of using the below but limiting my pages to the root folder - as it does seem to be working there at least:
<li>
<a <asp:Literal id="ClassToUse" runat="server"/> id="home_link"
href= "Default.aspx" title="Home" onfocus="this.blur();" runat="server">Home</a>
</li>
Or if it is possible to get the path from root (~/
) working within it, so as to enable a better folder layout/hierarchy.
Thanks in advanced – as I don't have an Openid and have given up on trying to sign in - for a while.