I have a view (View1.cshtml) with filters, a whole layout and a graphic inside a div that is generated according to the filters.
I created another blank view (View2.cshtml) and would like to pass it to just that div with the generated graphic.
Assuming I have this link in View1:
<a href="View2">Enviar HTML</a>
And supposing my controller looks like this:
public ActionResult View1()
{
negocio = new View1Negocio();
View1DTO dto = new View1DTO ();
dto.LstExercicios = negocio.ObterExercicios();
return View(dto);
}
public ActionResult View2()
{
negocio = new View1Negocio();
View1DTO dto = new View1DTO ();
dto.LstExercicios = negocio.ObterExercicios();
return new ViewAsPdf("View2", dto);
}
Is there any way to do this? What would I have to do in that code to send this html?