I need to generate dynamic HTML in a C # application implemented in Visual Studio.
In this case, I need to display the li
tag as logged in user.
The code is:
<%if (Session["usuario"] != null) {
<li><a href="<%= ResolveUrl("~/Paginas/Contratos.aspx") %>">
<img src="<%= ResolveUrl("~/images/chama.png") %>" class="chama" />
<span>Contratos</span></a><br class="clear" />
</li>
}%>