最近在研究chart,在VS2010,4.0,将微软提供的示例在工程中执行,显示的是红叉,为什么???
在工程的根目录下可以显示,在子目录下显示红叉,是哪里配置问题?
<form id="Forms1" method="post" runat="server">
<p class="dscr">This sample demonstrates how to use the Chart control without
code-behind pages.</p>
<table class="sampleTable">
<tr>
<td class="tdchart">
<%
System.Web.UI.DataVisualization.Charting.Chart Chart1 = new System.Web.UI.DataVisualization.Charting.Chart();
Chart1.Width = 412;
Chart1.Height = 296;
Chart1.RenderType = RenderType.ImageTag;
Chart1.ImageLocation = "..\\TempImages\\ChartPic_#SEQ(200,30)";
Chart1.Palette = ChartColorPalette.BrightPastel;
Title t = new Title("No Code Behind Page", Docking.Top, new System.Drawing.Font("Trebuchet MS", 14, System.Drawing.FontStyle.Bold), System.Drawing.Color.FromArgb(26, 59, 105));
Chart1.Titles.Add(t);
Chart1.ChartAreas.Add("Series 1");
// create a couple of series
Chart1.Series.Add("Series 1");
Chart1.Series.Add("Series 2");
// add points to series 1
Chart1.Series["Series 1"].Points.AddY(5);
Chart1.Series["Series 1"].Points.AddY(8);
Chart1.Series["Series 1"].Points.AddY(12);
Chart1.Series["Series 1"].Points.AddY(6);
Chart1.Series["Series 1"].Points.AddY(9);
Chart1.Series["Series 1"].Points.AddY(4);
// add points to series 2
Chart1.Series["Series 2"].Points.AddY(2);