Hi
My routing/path breaks when I add <asp:Literal id="ClassToUse" runat="server"/>
So I have the below (working bit of code) in my MasterPage so as to be able to link to the Default.aspx etc, page from any page... and it was working if I was also a few folders deep into the site - but it doesn't seem to at prescent - after adding the "<asp:Literal ID="ClassToUse" runat="server"/>" bit...
The dynamic css ClassToUse worked on it own too, but when I mix them up I cause problems (an "/~/" is added to my link's path (http://localhost:port/root_folder/~/file) at root level, and for 1 folder deep into the site also I get http://localhost:port/root_folder/subfolder/~/file).
Working:
<li><a id="home_link" href= "~/Default.aspx" title="Home" onfocus="this.blur();" runat="server">Home</a></li>
Not working:
<li><a <asp:Literal id="ClassToUse" runat="server"/> id="home_link" href= "~/Default.aspx" title="Home" onfocus="this.blur();" runat="server">Home</a></li>
I am also getting an "Element a is missing the > from its start tag" valadation warning, when I hover over a green squigle under the opening a tag.
Everyting after the <asp:Literal ID="ClassToUse" runat="server"/> is showing up in black also...
Any help on getting both bits to work together - the path from root folder and the dyanmic css style?