0
I have an HTML with the following code:
<div class="page">
...Conteúdo1
</div>
<div class="page">
...Conteúdo2
</div>
<div class="page">
...Conteúdo3
</div>
the class "page" it creates a background as if it were an A4 sheet, so that the content is placed inside it, the following happens, that when I bring the whole HTML in string they see in a single string, only that I needed for each div of class "page" to generate an image individually, I just have no idea how I could possibly separate each div into a different string. If anyone can help.
string HTMLemString = RenderizaHtmlComoString("~/Views/Item/Item.cshtml", id);
the code above is where it brings all the html of the page.
But how do you currently do it? How is the code that generates this HTML page with Divs?
– George Wurthmann
I put the code in the question.
– Brayan
You’re still confused. How do you know how many Ivs you need? Why are you calling your View this way
RenderizaHtmlComoString("~/Views/Item/Item.cshtml", id);
? You will probably need to make several changes, but in Item.cshtml you can create a loop that creates the Divs, as long as you inform somehow the amount you want.– George Wurthmann
puts the value that the string
HTMLemString
stay after you run that callHTMLemString = RenderizaHtmlComoString("~/Views/Item/Item.cshtml", id);
– andrepaulo