0👍
ltChart.Text
only updates the text, not the html. Change your markup from
<div>
<asp:Literal ID="ltChart" runat="server"></asp:Literal>
</div>
to
<div id='ltChart' runat='server'></div>
Then, instead of ltChart.Text
, you would use ltChart.InnerHtml
(more info here).
ASP.NET webforms is obsolete, so if it’s a new application, it would be best to use MVC or Blazor.
Source:stackexchange.com