Beispiel #1
0
        public void BindStudentList()
        {
            ApplicationResult objResult    = new ApplicationResult();
            StudentBL         objStudentBl = new StudentBL();

            objResult = objStudentBl.FeesCollction_DatesWiseStudentFees(Convert.ToInt32(Session[ApplicationSession.TRUSTID]), Convert.ToInt32(Session[ApplicationSession.SCHOOLID]), 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();
            }
            else
            {
                divReport.Visible             = false;
                pnlFeesCollectionInfo.Visible = true;
                ClearAll();
                ScriptManager.RegisterStartupScript(this, GetType(), "alert", "alert('No Records Found.');", true);
            }
        }