I am checking if condition in Classic ASP but its not working properly. Here is the code that isn’t working:
<% If (Request.QueryString("Cat")="") Then %>
<a class="home selected" href="/" alt="Home"></a>
<%Else%>
<a class="home" href="/" alt="Home"></a>
<%End If%>
This displays both anchor tags but I want to display only one from both.
Please give me suggestions on how to fix it.
While I don’t see any issue with the code that is posted, I cleaner way of doing this: