use stringbuilder to show asp chart control
<p>I want to create dynamic chart in my webpage.I use stringbuilder but i can not see a chart on the page.Can you please help how to do it?</p>

<pre><code>StringBuilder builderchart = new StringBuilder();

builderchart.Append("&lt;table&gt;");
builderchart.Append("&lt;tr&gt;");
builderchart.Append("&lt;td width=412 class=tdchart&gt;");
builderchart.Append("&lt;p&gt;");
builderchart.Append("&lt;asp:Chart ID=Chart1 runat=server&gt;&lt;Series&gt;&lt;asp:Series Name=Series1&gt;&lt;/asp:Series&gt;&lt;/Series&gt;&lt;ChartAreas&gt;&lt;asp:ChartArea Name=ChartArea1&gt;&lt;/asp:ChartArea&gt;&lt;/ChartAreas&gt;&lt;/asp:Chart&gt;");
builder.Append("&lt;/p&gt;");
builderchart.Append("&lt;/table&gt;");
Literal2.Text = builderchart.ToString();
</code></pre>
