I have the following view:
public ActionResult RelatorioEquipe()
{
ViewRelatorioEquipeDTO dto = new ViewRelatorioEquipeDTO();
dto.LstUnidadeGerencial = negocio.Relatorio.ObterLstUg();
dto.LstExercicios = new ExercicioNegocio().ObterExerciciosAtivos();
dto.Html = "<img src=\"~/Imagens/LogoMetroRelatorio.png\" style=\"float: left\" />";
return View(dto);
}
dto.Html
is a string and when I refer to it on my page (cshtml):
<div class="logo">
@Model.Html
</div>
The page naturally shows a string with this text.
The question is: do you have instead of showing the string, rendering that html and displaying the image?