title: Incorrect syntax near the keyword 'check'
body: <p>I am trying to display db data on chart. But it occurs an error on run time. I tried to solve, but I can't. Any one can help me. Code is given below:</p>
  
  <pre><code> public partial class chart4 : System.Web.UI.Page
  {
      SqlConnection con;
      SqlCommand cmd;
      SqlDataAdapter da;
      DataSet ds;
      protected void Page_Load(object sender, EventArgs e)
      {
          con = new SqlConnection(@"Data Source=(LocalDB)\v11.0;AttachDbFilename=G:\vipin\graph\graph.mdf;Integrated Security=True;Connect Timeout=30");
          cmd = new SqlCommand("Select * from check", con);
          da = new SqlDataAdapter(cmd);
          ds = new DataSet();
          da.Fill(ds);
  
          DataView source = new DataView(ds.Tables[0]);
          Chart1.DataSource = source;
  
          Chart1.Series[0].XValueMember = "name";
          Chart1.Series[0].YValueMembers = "age";
          Chart1.Series[0].XValueMember = "address";
          Chart1.Series[0].YValueMembers = "phno";
          Chart1.DataBind();
      }
  }
  </code></pre>
  
  <p>source:</p>
  
  <pre><code>&lt;body&gt;
      &lt;form id="form1" runat="server"&gt;
      &lt;div&gt;
          &lt;asp:Chart ID="Chart1" runat="server"&gt;
              &lt;Series&gt;
                  &lt;asp:Series Name="name"&gt;&lt;/asp:Series&gt;
                  &lt;asp:Series Name="age"&gt;&lt;/asp:Series&gt;
                  &lt;asp:Series Name="address"&gt;&lt;/asp:Series&gt;
                  &lt;asp:Series Name="phno"&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;
      &lt;/div&gt;
  </code></pre>