I have the following code.
<% if (Request.Path.ToLower().Contains("something"))
{%>
<%: Html.ActionLink("Something1", "Something1", "Home") %>
<%}else{%>
<%: Html.ActionLink("Something2", "Something2", "Home") %>
<%}%>
do I really need all those open <% and close %>? Is there a simpler way of writing the same thing?
Or, in Razor: