public void FillFaculty()
        {
            DataTable oDT = new DataTable();

            try
            {
                oDT = InstRep.AssignedConfirmedFaculties(hidUniID.Value, hidInstID.Value);
                Common.fillDropDown(ddlFaculty, oDT, "", "Fac_Desc", "pk_Fac_ID", "--- Select ---");
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }
Example #2
0
        /// <summary>
        /// Function for filling independent drop down.
        /// </summary>
        private void FillIndependentCombo()
        {
            DT = new DataTable();
            if (pk_Institute_ID != string.Empty)
            {
                DT = oInst.AssignedConfirmedFaculties(Convert.ToString(UniId), pk_Institute_ID);
            }
            else
            {
                DT = oCr.LaunchedUniversityWiseFacultyList(UniId);
            }


            oCommon = new clsCommon();
            oCommon.fillDropDown(DDlFaculty, DT, string.Empty, "Fac_Desc", "pk_Fac_ID", "---- Select ----");
            if (oCommon != null)
            {
                oCommon = null;
            }

            DT       = new DataTable();
            oGeneral = new clsGeneral();
            DT       = oGeneral.ListGender();
            oGeneral = null;
            oCommon  = new clsCommon();
            oCommon.fillDropDown(DD_Gender, DT, "0", "Text", "Value", "---- Select ----");
            DT      = null;
            oCommon = null;
        }
        public HtmlSelect FetchCollegeWiseConfirmedFacultyListNew(string UniID, string InstID, string ddlFacDescID)
        {
            InstituteRepository oInstituteRepository = new InstituteRepository();
            HtmlSelect          htmlSel     = new HtmlSelect();
            DataTable           listFaculty = oInstituteRepository.AssignedConfirmedFaculties(UniID, InstID.Split('|')[0]);

            try
            {
                if (listFaculty != null)
                {
                    htmlSel.ID = ddlFacDescID;
                    htmlSel.Attributes.Add("class", "selectbox");
                    htmlSel.Attributes.Add("onchange", "setValue(hid_Fac_id,this.value);FillCourse(this.value);ClearDropDowns(1,5)");

                    htmlSel.DataSource     = listFaculty;
                    htmlSel.DataTextField  = "Fac_Desc";
                    htmlSel.DataValueField = "pk_Fac_ID";
                    htmlSel.DataBind();
                    ListItem li = new ListItem("--- Select ---", "-1");
                    htmlSel.Items.Insert(0, li);
                }
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }

            return(htmlSel);
        }
Example #4
0
        public void FetchCollegeWiseConfirmedFacultyList(string UniID, string InstID)
        {
            DataTable listFaculty = oInstituteRepository.AssignedConfirmedFaculties(hidUniID.Value.ToString(), hidInstID.Value);

            try
            {
                if (listFaculty != null)
                {
                    ddlFacDesc.DataSource     = listFaculty;
                    ddlFacDesc.DataTextField  = "Fac_Desc";
                    ddlFacDesc.DataValueField = "pk_Fac_ID";
                    ddlFacDesc.DataBind();
                    System.Web.UI.WebControls.ListItem li = new System.Web.UI.WebControls.ListItem("--- Select ---", "-1");
                    ddlFacDesc.Items.Insert(0, li);
                }
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }