コード例 #1
0
        public static string LoadClass(int intSectionID, int intSchoolMID)
        {
            try
            {
                #region Bind Class
                ClassBL objClassBL = new ClassBL();
                ClassBO objClassBO = new ClassBO();

                ApplicationResult objResultSection = new ApplicationResult();
                objResultSection = objClassBL.Class_SelectAll_SectionWise_ForDropDown(intSectionID, intSchoolMID);
                if (objResultSection != null)
                {
                    if (objResultSection.resultDT.Rows.Count > 0)
                    {
                    }
                }
                string res = "";
                res = DataSetToJSON(objResultSection.resultDT);
                return(res);

                #endregion
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
コード例 #2
0
ファイル: StudentList.aspx.cs プロジェクト: BTSSGIT/GEB-2019
        public void getClassName()
        {
            ddlclass.Items.Clear();
            ddlDivision.Items.Clear();
            ApplicationResult objResult   = new ApplicationResult();
            Controls          objControls = new Controls();
            ClassBL           objClassBl  = new ClassBL();

            // string str = ddlsection.se;
            objResult = objClassBl.Class_SelectAll_SectionWise_ForDropDown(Convert.ToInt32(ddlsection.SelectedValue), Convert.ToInt32(Session[ApplicationSession.SCHOOLID]));
            if (objResult != null)
            {
                objControls.BindDropDown_ListBox(objResult.resultDT, ddlclass, "ClassName", "ClassMID");
                if (objResult.resultDT.Rows.Count > 0)
                {
                }
                ddlclass.Items.Insert(0, new System.Web.UI.WebControls.ListItem("--Select--", ""));
                ddlDivision.Items.Insert(0, new System.Web.UI.WebControls.ListItem("--Select--", ""));
            }
        }
コード例 #3
0
        protected void ddlSection_SelectedIndexChanged(object sender, EventArgs e)
        {
            try
            {
                ApplicationResult objResult   = new ApplicationResult();
                Controls          objControls = new Controls();
                ClassBL           objClassBl  = new ClassBL();

                objResult = objClassBl.Class_SelectAll_SectionWise_ForDropDown(Convert.ToInt32(ddlSection.SelectedValue), Convert.ToInt32(ddlSchoolName.SelectedValue));
                if (objResult != null)
                {
                    objControls.BindDropDown_ListBox(objResult.resultDT, ddlClassName, "ClassName", "ClassMID");
                    if (objResult.resultDT.Rows.Count > 0)
                    {
                    }
                    ddlClassName.Items.Insert(0, new ListItem("--Select--", ""));
                }
            }
            catch (Exception)
            {
                throw;
            }
        }