public void BindStudentList() { ApplicationResult objResult = new ApplicationResult(); StudentBL objStudentBl = new StudentBL(); objResult = objStudentBl.FeesCollction_ClassWiseStudentFees(Convert.ToInt32(Session[ApplicationSession.TRUSTID]), Convert.ToInt32(Session[ApplicationSession.SCHOOLID]), Convert.ToInt32(ddlclass.SelectedValue), Convert.ToInt32(ddlDivision.SelectedValue), ddlYear.SelectedItem.ToString(), txtFromDate.Text.Trim(), txtToDate.Text.Trim()); if (objResult.resultDT.Rows.Count > 0) { gvReport.DataSource = objResult.resultDT; gvReport.DataBind(); divReport.Visible = true; pnlFeesCollectionInfo.Visible = false; lblTrust.Text = Session[ApplicationSession.TRUSTNAME].ToString(); lblSchool.Text = Session[ApplicationSession.SCHOOLNAME].ToString(); lblClass.Text = ddlclass.SelectedItem.ToString() + "-" + ddlDivision.SelectedItem.ToString(); lblYear.Text = ddlYear.SelectedItem.ToString(); } else { divReport.Visible = false; pnlFeesCollectionInfo.Visible = true; ClearAll(); ScriptManager.RegisterStartupScript(this, GetType(), "alert", "alert('No Records Found.');", true); } }