Error while creating chart using c# asp.net
<p>Hi this my first time I'm trying to create a chart and I have an error, so can any one help me please ? </p>

<p>This is the code ( I'm using line chart ) : </p>

<pre><code>protected void Page_Load(object sender, EventArgs e)
    {
        Chart1.ChartAreas.Add("chtAres");
        Chart1.ChartAreas[0].AxisX.Title = "Category Name";
        Chart1.ChartAreas[0].AxisX.TitleFont = new System.Drawing.Font("Verdana", 11, System.Drawing.FontStyle.Bold);
        Chart1.ChartAreas[0].AxisY.Title = "UnitPrice";
        Chart1.ChartAreas[0].AxisY.TitleFont = new System.Drawing.Font("Verdana", 11, System.Drawing.FontStyle.Bold);
        Chart1.ChartAreas[0].BorderDashStyle = ChartDashStyle.Solid;
        Chart1.ChartAreas[0].BorderWidth = 2;

        Chart1.Legends.Add("UnitPrice");
        Chart1.Series.Add("UnitPrice");

        Chart1.Series[0].ChartType = System.Web.UI.DataVisualization.Charting.SeriesChartType.Line;
        Chart1.Series[0].Points.DataBindXY(result.DefaultView, "CategoryName", result.DefaultView, "UnitPrice");

    }

}
</code></pre>

<p>and this is the Error Source Error: </p>

<blockquote>
  <p>Line 1:  &lt;%@ Application Codebehind="Global.asax.cs"
  Inherits="WebApplication3.Global" Language="C#" %></p>
</blockquote>
