I have a div in the aspx page which i gave the attribute runat = "server" and id = "content". When starting the page I need to create some cards with data taken from a database. But it gives me error when I try from code behind in c # using content.InnerHtml to add html code.
aspx page
<div class="page-wrapper">
<div class="page-content" runat="server" id="contenuto">
</div>
</div>
code behind
contenuto.InnerHtml += "<div class='row'>";
it gives me this error: "Could not get the internal content of content because it is not in literal format."