SHARE
TWEET

Untitled

a guest Jun 27th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. sqlcon.Open();
  2.             SqlDataAdapter sqlda = new SqlDataAdapter("SELECT * FROM Events WHERE  FixtureID = " + ddlFixture.SelectedValue, sqlcon);
  3.             DataSet ds = new DataSet();
  4.             sqlda.Fill(ds);
  5.             BarChart1.Visible = true;
  6.             string[] count = new string[4];
  7.             String[] events = new string[4];
  8.  
  9.             if (ds.Tables[0].Rows.Count > 0)
  10.             {
  11.  
  12.                 count[0] = ds.Tables[0].Rows[0]["EventName"].ToString();
  13.                 count[0] = ds.Tables[0].Rows[0]["EventName"].ToString();
  14.                 count[0] = ds.Tables[0].Rows[0]["EventName"].ToString();
  15.                 events[0] = "Free";
  16.                 events[1] = "Goal";
  17.                 events[2] = "Wide Shot";
  18.  
  19.             }
  20.             sqlcon.Close();
  21.             BarChart1.Series.Add(new AjaxControlToolkit.BarChartSeries { Data = events });
  22.             BarChart1.CategoriesAxis = string.Join(",", events);
  23.             BarChart1.ChartTitle = "Stats Graph";
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top