So I have something like this:
<%If (Request.Url.ToString = "default.aspx") Then %>
<li><a href="url">Link</a></li>
<li><a href="url">Link</a></li>
<%ElseIf (Request.Url.ToString = "anotherdefault.aspx") Then %>
<li><a href="url">Link</a></li>
<li><a href="url">Link</a></li>
But for some odd reason it isn’t bringing up the links for that certain URL. But when I put a breakpoint on my vb page it works. Think that the IF statement is causing a css problem?
The “=” is case sensitive. If you’re testing by typing the URL into the browser, you might not be testing exactly what is coming from the app. Try using
Request.Url.ToString.ToLower() = "default.aspx"