protected void BindChart()
    {
        DataSet          ds             = new DataSet();
        ReportsForResult objRsultReport = new ReportsForResult();

        ds = objRsultReport.BAL_SYS_ResultStudentwiseSecond_Select(this.SchoolID, this.StudentID, this.BMSID, this.SubjectID, this.DivisionID, this.FromDate, this.ToDate);

        DataTable dt = new DataTable();


        dt = ds.Tables[0];

        string[]  x = new string[dt.Rows.Count];
        decimal[] y = new decimal[dt.Rows.Count];

        for (int i = 0; i < dt.Rows.Count; i++)
        {
            x[i] = dt.Rows[i][2].ToString();
            string perc = dt.Rows[i][3].ToString().Substring(0, dt.Rows[i][3].ToString().IndexOf("%"));
            y[i] = Convert.ToInt32(perc);
        }

        //BarChart1.Series.Add(new AjaxControlToolkit.BarChartSeries { Data = y });
        //BarChart1.CategoriesAxis = string.Join(",", x);
        //Chart1.Series[0].Points.DataBindXY(x, y);
        //Chart1.Series[0].ChartType = SeriesChartType.Column;
        //Chart1.ChartAreas["ChartArea1"].Area3DStyle.Enable3D = false;
        lblstudentname.Text = studentname;
        //Chart1.Legends[0].Enabled = true;
    }
    private void StageTwoCalling()
    {
        DataSet          ds             = new DataSet();
        ReportsForResult objRsultReport = new ReportsForResult();

        ds = objRsultReport.BAL_SYS_ResultStudentwiseSecond_Select(this.SchoolID, this.StudentID, this.BMSID, this.SubjectID, this.DivisionID, this.FromDate, this.ToDate);


        GetConnectionStringSTRING obj = new GetConnectionStringSTRING();

        connectionstring = obj.BAL_EpathshalaString();

        CommanCallUserControl(ds, "../ReportXMLFiles/StudentWiseReportSecond.xml");

        Chart1.Visible = true;
        BindChart(ds);
    }