Пример #1
0
        //Bind Department
        #region [Bind Department]

        private void BindDepartment()
        {
            EWA_Common objEWA = new EWA_Common();
            BL_Common  objBL  = new BL_Common();

            objEWA.OrgId = Convert.ToString(orgID);
            DataSet ds = objBL.BindDepartment_BL(objEWA);

            ddlDepartment.DataSource     = ds;
            ddlDepartment.DataTextField  = "DepartmentName";
            ddlDepartment.DataValueField = "DepartmentId";
            ddlDepartment.DataBind();
            ddlDepartment.Items.Insert(0, "Select");
        }
        //Bind Dept
        #region [Bind Dept]

        private void BindDepartment()
        {
            try
            {
                EWA_Common objEWA = new EWA_Common();
                BL_Common  objBL  = new BL_Common();
                objEWA.OrgId = Session["OrgId"].ToString();
                DataSet ds = objBL.BindDepartment_BL(objEWA);

                ddlDepartment.DataSource     = ds;
                ddlDepartment.DataTextField  = "DepartmentName";
                ddlDepartment.DataValueField = "DepartmentId";
                ddlDepartment.DataBind();
                ddlDepartment.Items.Insert(0, new ListItem("Select", "Select"));
            }
            catch (Exception exp)
            {
                GeneralErr(exp.Message.ToString());
            }
        }