0

我想在我的网页中创建动态图表。我使用 stringbuilder 但我在页面上看不到图表。你能帮忙怎么做吗?

StringBuilder builderchart = new StringBuilder();

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

1 回答 1

0

您不能用于StringBuilder实例化控件。您可以从以下链接下载一些图表控件示例:http: //archive.msdn.microsoft.com/mschart

于 2012-10-31T10:02:27.963 回答