I'm trying to add if statement in ascx file to display div only in one page, but unfortunately when i added code like:
<% if(Url.Action == "/something") {<div>something</div>} %>
a whole website return redirect loop. Any idea, how to solve that? Thank you in advance
Aucun commentaire:
Enregistrer un commentaire