Data bind in Chart control

Here we use DataBind method of chart control using System.Web.UI.DataVisualization.Charting; … private void Page_Load(object sender, System.EventArgs e) { // Resolve the address to the Access database string fileNameString = this.MapPath(“.”); fileNameString += “..\\..\\..\\data\\chartdata.mdb”; // Initialize a connection string string myConnectionString = “PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source=” + fileNameString; // Define the database query string mySelectQuery=”SELECT * FROM REPS;”;

Bind data in Chart control using data reader

Bind data in Chart control using data reader. We use DataBindTable method of chart control. using System.Web.UI.DataVisualization.Charting; … private void Page_Load(object sender, System.EventArgs e) { // Resolve the address to the Access database string fileNameString = this.MapPath(“.”); fileNameString += “..\\..\\..\\data\\chartdata.mdb”; // Initialize a connection string string myConnectionString = “PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source=” + fileNameString; // Define the