コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //nho try-catch roi day ve management site
            if ((Boolean)Context.Profile.GetPropertyValue("Employee.AllowCreateCV") == false)
            {
                Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "PopupScript", "<script>alert('Your CV has existed. Please go to employee site to edit your CV!');window.location.href ='../Account/my-jobs.aspx';</script>");
                //Response.Redirect(Request.UrlReferrer.ToString());
            }
            Assembly ass = Assembly.Load("App_GlobalResources");
            ResourceManager rm = new ResourceManager("Resources.Resource", ass);
            try
            {
                MembershipUser mu = Membership.GetUser();
                userId = mu.ProviderUserKey.ToString();
                lbl_fullname.Text = Context.Profile.GetProfileGroup("Employee").GetPropertyValue("FirstName").ToString();
            }
            catch (Exception)
            {
                Response.Redirect("~/publicArea/errorpages/Error404.aspx");
            }

            facade = new BusinessFacade(myConn);
            if (!IsPostBack)
            {
                ddl_EmploymentType.Items.Insert(0, new ListItem(string.Empty, string.Empty));
                List<EmploymentType> etList = facade.GetAllEmploymentType();
                foreach (EmploymentType et in etList)
                {
                    ListItem li = Utils.DecideLangDropdown(et.EtName, et.EtName_vn);
                    ddl_EmploymentType.Items.Add(li);
                }

                ddl_DesiredTravel.Items.Insert(0, new ListItem(string.Empty, string.Empty));
                List<DesiredTravel> dtList = facade.GetDesiredTravel();
                foreach (DesiredTravel dt in dtList)
                {
                    ListItem li = Utils.DecideLangDropdown(dt.Name_en, dt.Name_vi);
                    ddl_DesiredTravel.Items.Add(li);
                }
                ddl_EduLevel.Items.Insert(0, new ListItem(string.Empty, string.Empty));
                List<EduLevelcs> elList = facade.GetEduLevel();
                foreach (EduLevelcs el in elList)
                {
                    ListItem li = Utils.DecideLangDropdown(el.Name_en, el.Name_vi);
                    ddl_EduLevel.Items.Add(li);
                }

                List<WillToRelocated> wrList = facade.GetWilingToRelocate();
                foreach (WillToRelocated wr in wrList)
                {
                    ListItem li = Utils.DecideLangDropdown(wr.Name_en, wr.Name_vi);
                    ddl_Relocated.Items.Add(li);
                }
                ddl_YearOfExp.Items.Insert(0, new ListItem(string.Empty, string.Empty));
                List<YearOfExp> yeList = facade.GetYearsOfExp();
                foreach (YearOfExp ye in yeList)
                {
                    ListItem li = Utils.DecideLangDropdown(ye.Name_en, ye.Name_vi);
                    ddl_YearOfExp.Items.Add(li);
                }

                //CAtegory dropdown
                List<Sector> seList1 = facade.GetFullCategory(1);
                List<Sector> seList2 = facade.GetFullCategory(2);
                List<Sector> seList3 = facade.GetFullCategory(3);

                ddl_Employment.Items.Insert(0, new ListItem(String.Empty, String.Empty));
                if (!IsPostBack)
                {
                    int index1 = 1;
                    Utils.catebinding(ddl_Employment, seList1, 1, index1);
                    index1 = ddl_Employment.Items.Count;
                    Utils.catebinding(ddl_Employment, seList2, 2, index1);
                    index1 = ddl_Employment.Items.Count;
                    Utils.catebinding(ddl_Employment, seList3, 3, index1);
                }
                ddl_Employment2.Items.Insert(0, new ListItem(String.Empty, String.Empty));
                if (!IsPostBack)
                {
                    int index2 = 1;
                    Utils.catebinding(ddl_Employment2, seList1, 1, index2);
                    index2 = ddl_Employment2.Items.Count;
                    Utils.catebinding(ddl_Employment2, seList2, 2, index2);
                    index2 = ddl_Employment2.Items.Count;
                    Utils.catebinding(ddl_Employment2, seList3, 3, index2);
                }
                ddl_Employment3.Items.Insert(0, new ListItem(String.Empty, String.Empty));
                if (!IsPostBack)
                {
                    int index3 = 1;
                    Utils.catebinding(ddl_Employment3, seList1, 1, index3);
                    index3 = ddl_Employment3.Items.Count;
                    Utils.catebinding(ddl_Employment3, seList2, 2, index3);
                    index3 = ddl_Employment3.Items.Count;
                    Utils.catebinding(ddl_Employment3, seList3, 3, index3);
                }
                //-------------------------------------------------

                ddl_JobLevel.Items.Insert(0, new ListItem(String.Empty, String.Empty));
                List<JobRole> jrList = facade.GetAllJobRole();
                foreach (JobRole jr in jrList)
                {
                    ListItem li = Utils.DecideLangDropdown(jr.JrName, jr.JrName_vn);
                    ddl_JobLevel.Items.Add(li);
                }
                ddl_CurrentJobLevel.Items.Insert(0, new ListItem(String.Empty, String.Empty));

                foreach (JobRole jr in jrList)
                {
                    ListItem li = Utils.DecideLangDropdown(jr.JrName, jr.JrName_vn);
                    ddl_CurrentJobLevel.Items.Add(li);
                }

                ddl_DesiredLocation.Items.Insert(0, new ListItem(string.Empty, string.Empty));
                ddl_DesiredLocation2.Items.Insert(0, new ListItem(string.Empty, string.Empty));
                ddl_DesiredLocation3.Items.Insert(0, new ListItem(string.Empty, string.Empty));
                List<Location> loList = facade.GetAllLocation();
                foreach (Location lo in loList)
                {
                    ListItem li = Utils.DecideLangDropdown(lo.LName, lo.LName_vn);
                    ddl_DesiredLocation.Items.Add(li);
                }
                foreach (Location lo in loList)
                {
                    ListItem li = Utils.DecideLangDropdown(lo.LName, lo.LName_vn);
                    ddl_DesiredLocation2.Items.Add(li);
                }
                foreach (Location lo in loList)
                {
                    ListItem li = Utils.DecideLangDropdown(lo.LName, lo.LName_vn);
                    ddl_DesiredLocation3.Items.Add(li);
                }

                ddl_lang1.Items.Insert(0, new ListItem(rm.GetString("Pleaseselect"), string.Empty));
                ddl_lang2.Items.Insert(0, new ListItem(rm.GetString("Pleaseselect"), string.Empty));
                ddl_lang3.Items.Insert(0, new ListItem(rm.GetString("Pleaseselect"), string.Empty));
                List<Lang> langList;
                if (Thread.CurrentThread.CurrentCulture.Name == "vi-VN")
                {
                    langList = facade.GetLang("vi");
                }
                else
                {
                    langList = facade.GetLang("en");
                }
                foreach (Lang l in langList)
                {
                    ListItem li = Utils.DecideLangDropdown(l.Lang_en, l.Lang_vi);
                    ddl_lang1.Items.Add(li);
                }
                foreach (Lang l in langList)
                {
                    ListItem li = Utils.DecideLangDropdown(l.Lang_en, l.Lang_vi);
                    ddl_lang2.Items.Add(li);
                }
                foreach (Lang l in langList)
                {
                    ListItem li = Utils.DecideLangDropdown(l.Lang_en, l.Lang_vi);
                    ddl_lang3.Items.Add(li);
                }
                ddl_lang1_lvl.Items.Insert(0, new ListItem(rm.GetString("Pleaseselect"), string.Empty));
                ddl_lang2_lvl.Items.Insert(0, new ListItem(rm.GetString("Pleaseselect"), string.Empty));
                ddl_lang3_lvl.Items.Insert(0, new ListItem(rm.GetString("Pleaseselect"), string.Empty));
                List<LangLvl> langlvlList = facade.GetLangLvl_en();
                foreach (LangLvl lvl in langlvlList)
                {
                    ListItem li = Utils.DecideLangDropdown(lvl.Langlvl_en, lvl.Langlvl_vi);
                    ddl_lang1_lvl.Items.Add(li);
                }
                foreach (LangLvl lvl in langlvlList)
                {
                    ListItem li = Utils.DecideLangDropdown(lvl.Langlvl_en, lvl.Langlvl_vi);
                    ddl_lang2_lvl.Items.Add(li);
                }
                foreach (LangLvl lvl in langlvlList)
                {
                    ListItem li = Utils.DecideLangDropdown(lvl.Langlvl_en, lvl.Langlvl_vi);
                    ddl_lang3_lvl.Items.Add(li);
                }
                //Load other
                //if (userId != null)
                //{
                //    ListItem li_EduLevel = ddl_EduLevel.Items.FindByValue(Context.Profile.GetPropertyValue("CV.EduLevel").ToString());
                //    if (li_EduLevel != null) { li_EduLevel.Selected = true; }

                //    txt_Major.Text = Context.Profile.GetPropertyValue("CV.Major").ToString();

                //    ListItem li_YearOfExp = ddl_YearOfExp.Items.FindByValue(Context.Profile.GetPropertyValue("CV.YearsofExperience").ToString());
                //    if (li_YearOfExp != null) { li_YearOfExp.Selected = true; }

                //    txt_RelatedExp.Text = Context.Profile.GetPropertyValue("CV.RelatedExperience").ToString();
                //    txt_MostRecentPosition.Text = Context.Profile.GetPropertyValue("CV.MostRecentPosition").ToString();

                //    ListItem li_CurrentJobLevel = ddl_CurrentJobLevel.Items.FindByValue(Context.Profile.GetPropertyValue("CV.CurrentJobLevel").ToString());
                //    if (li_CurrentJobLevel != null) { li_CurrentJobLevel.Selected = true; }

                //    txt_Achievement.Text = Context.Profile.GetPropertyValue("CV.Achievements").ToString();
                //    txt_Skill.Text = Context.Profile.GetPropertyValue("CV.SkillsInterests").ToString();
                //    txt_Membership.Text = Context.Profile.GetPropertyValue("CV.Memberships").ToString();

                //    ListItem li_Employment = ddl_Employment.Items.FindByValue(Context.Profile.GetPropertyValue("CV.DesiredEmployment").ToString());
                //    if (li_Employment != null) { li_Employment.Selected = true; }

                //    ListItem li_JobLevel = ddl_JobLevel.Items.FindByValue(Context.Profile.GetPropertyValue("CV.DesiredJobLevel").ToString());
                //    if (li_JobLevel != null) { li_JobLevel.Selected = true; }

                //    ListItem li_DesiredLocation = ddl_DesiredLocation.Items.FindByValue(Context.Profile.GetPropertyValue("CV.DesiredLocations").ToString());
                //    if (li_DesiredLocation != null) { li_DesiredLocation.Selected = true; }

                //    txt_SalaryFrom.Text = Context.Profile.GetPropertyValue("CV.SalaryFrom").ToString();
                //    txt_SalaryTo.Text = Context.Profile.GetPropertyValue("CV.SalaryTo").ToString();

                //    ListItem li_Currency = ddl_SalaryCurrency.Items.FindByValue(Context.Profile.GetPropertyValue("CV.SalaryCurrency").ToString());
                //    if (li_Currency != null) { li_Currency.Selected = true; }
                //    ListItem li_PaidType = ddl_SalaryPaidType.Items.FindByValue(Context.Profile.GetPropertyValue("CV.SalaryPaidType").ToString());
                //    if (li_PaidType != null) { li_PaidType.Selected = true; }
                //    ListItem li_DesiredTravel = ddl_DesiredTravel.Items.FindByValue(Context.Profile.GetPropertyValue("CV.DesiredTravel").ToString());
                //    if (li_DesiredTravel != null) { li_DesiredTravel.Selected = true; }

                //    ListItem li_Relocated = ddl_Relocated.Items.FindByValue(Context.Profile.GetPropertyValue("CV.WillingToRelocate").ToString());
                //    if (li_Relocated != null) { li_Relocated.Selected = true; }

                //    txt_HowSoonAvai.Text = Context.Profile.GetPropertyValue("CV.HowSoonToWork").ToString();
                //    txt_Statement.Text = HttpUtility.HtmlDecode(Context.Profile.GetPropertyValue("CV.PersonalStatement").ToString());
                //    if (Convert.ToBoolean(Context.Profile.GetPropertyValue("CV.Searchable").ToString()) == true)
                //    {
                //        cb_Seachable.Checked = true;
                //    }
                //    else
                //    {
                //        cb_Seachable.Checked = false;
                //    }
                //}

                //Limit input characters
                txt_Statement.Attributes.Add("onkeydown", "textCounter(this,'" + Label3.ClientID + "', 5000)");
                txt_Statement.Attributes.Add("onkeyup", "textCounter(this,'" + Label3.ClientID + "', 5000)");
                txt_Statement.Attributes.Add("onmousedown", "textCounter(this,'" + Label3.ClientID + "', 5000)");
                txt_Statement.Attributes.Add("onmouseup", "textCounter(this,'" + Label3.ClientID + "', 5000)");
                txt_Statement.Attributes.Add("onblur", "textCounter(this,'" + Label3.ClientID + "', 5000)");
            }
        }
コード例 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                MembershipUser mu = Membership.GetUser();
                userId = mu.ProviderUserKey.ToString();
                Username = mu.UserName;
            }
            catch (Exception)
            {
                Response.Redirect("~/publicArea/errorpages/Error404.aspx");
            }

            facade = new BusinessFacade(myConn);
            if (!IsPostBack)
            {
                ddl_DesiredTravel.Items.Insert(0, new ListItem(string.Empty, string.Empty));
                List<DesiredTravel> dtList = facade.GetDesiredTravel();
                foreach (DesiredTravel dt in dtList)
                {
                    ListItem li = Utils.DecideLangDropdown(dt.Name_en, dt.Name_vi);
                    ddl_DesiredTravel.Items.Add(li);
                }
                ddl_EduLevel.Items.Insert(0, new ListItem(string.Empty, string.Empty));
                List<EduLevelcs> elList = facade.GetEduLevel();
                foreach (EduLevelcs el in elList)
                {
                    ListItem li = Utils.DecideLangDropdown(el.Name_en, el.Name_vi);
                    ddl_EduLevel.Items.Add(li);
                }

                List<WillToRelocated> wrList = facade.GetWilingToRelocate();
                foreach (WillToRelocated wr in wrList)
                {
                    ListItem li = Utils.DecideLangDropdown(wr.Name_en, wr.Name_vi);
                    ddl_Relocated.Items.Add(li);
                }
                ddl_YearOfExp.Items.Insert(0, new ListItem(string.Empty, string.Empty));
                List<YearOfExp> yeList = facade.GetYearsOfExp();
                foreach (YearOfExp ye in yeList)
                {
                    ListItem li = Utils.DecideLangDropdown(ye.Name_en, ye.Name_vi);
                    ddl_YearOfExp.Items.Add(li);
                }

                List<Sector> seList1 = facade.GetFullCategory(1);
                List<Sector> seList2 = facade.GetFullCategory(2);
                List<Sector> seList3 = facade.GetFullCategory(3);

                ddl_Employment.Items.Insert(0, new ListItem(String.Empty, String.Empty));
                if (!IsPostBack)
                {
                    int index1 = 1;
                    Utils.catebinding(ddl_Employment, seList1, 1, index1);
                    index1 = ddl_Employment.Items.Count;
                    Utils.catebinding(ddl_Employment, seList2, 2, index1);
                    index1 = ddl_Employment.Items.Count;
                    Utils.catebinding(ddl_Employment, seList3, 3, index1);
                }

                ddl_Employment2.Items.Insert(0, new ListItem(String.Empty, String.Empty));
                if (!IsPostBack)
                {
                    int index2 = 1;
                    Utils.catebinding(ddl_Employment2, seList1, 1, index2);
                    index2 = ddl_Employment2.Items.Count;
                    Utils.catebinding(ddl_Employment2, seList2, 2, index2);
                    index2 = ddl_Employment2.Items.Count;
                    Utils.catebinding(ddl_Employment2, seList3, 3, index2);
                }
                ddl_Employment3.Items.Insert(0, new ListItem(String.Empty, String.Empty));
                if (!IsPostBack)
                {
                    int index3 = 1;
                    Utils.catebinding(ddl_Employment3, seList1, 1, index3);
                    index3 = ddl_Employment3.Items.Count;
                    Utils.catebinding(ddl_Employment3, seList2, 2, index3);
                    index3 = ddl_Employment3.Items.Count;
                    Utils.catebinding(ddl_Employment3, seList3, 3, index3);
                }

                //---------------------------
                ddl_JobLevel.Items.Insert(0, new ListItem(String.Empty, String.Empty));
                List<JobRole> jrList = facade.GetAllJobRole();
                foreach (JobRole jr in jrList)
                {
                    ListItem li = Utils.DecideLangDropdown(jr.JrName, jr.JrName_vn);
                    ddl_JobLevel.Items.Add(li);
                }

                ddl_CurrentJobLevel.Items.Insert(0, new ListItem(String.Empty, String.Empty));
                List<JobRole> jrList2 = facade.GetAllJobRole();
                foreach (JobRole jr in jrList)
                {
                    ListItem li = Utils.DecideLangDropdown(jr.JrName, jr.JrName_vn);
                    ddl_CurrentJobLevel.Items.Add(li);
                }
                ddl_DesiredLocation.Items.Insert(0, new ListItem(string.Empty, string.Empty));
                List<Location> loList = facade.GetAllLocation();
                foreach (Location lo in loList)
                {
                    ListItem li = Utils.DecideLangDropdown(lo.LName, lo.LName_vn);
                    ddl_DesiredLocation.Items.Add(li);
                }
                ddl_DesiredLocation2.Items.Insert(0, new ListItem(string.Empty, string.Empty));
                foreach (Location lo in loList)
                {
                    ListItem li = Utils.DecideLangDropdown(lo.LName, lo.LName_vn);
                    ddl_DesiredLocation2.Items.Add(li);
                }
                ddl_DesiredLocation3.Items.Insert(0, new ListItem(string.Empty, string.Empty));
                foreach (Location lo in loList)
                {
                    ListItem li = Utils.DecideLangDropdown(lo.LName, lo.LName_vn);
                    ddl_DesiredLocation3.Items.Add(li);
                }
                Assembly ass = Assembly.Load("App_GlobalResources");
                ResourceManager rm = new ResourceManager("Resources.Resource", ass);

                ddl_lang1.Items.Insert(0, new ListItem(rm.GetString("Pleaseselect"), string.Empty));
                ddl_lang2.Items.Insert(0, new ListItem(rm.GetString("Pleaseselect"), string.Empty));
                ddl_lang3.Items.Insert(0, new ListItem(rm.GetString("Pleaseselect"), string.Empty));
                List<Lang> langList;
                if (Thread.CurrentThread.CurrentCulture.Name == "vi-VN")
                {
                    langList = facade.GetLang("vi");
                }
                else
                {
                    langList = facade.GetLang("en");
                }
                foreach (Lang l in langList)
                {
                    ListItem li = Utils.DecideLangDropdown(l.Lang_en, l.Lang_vi);
                    ddl_lang1.Items.Add(li);
                }
                foreach (Lang l in langList)
                {
                    ListItem li = Utils.DecideLangDropdown(l.Lang_en, l.Lang_vi);
                    ddl_lang2.Items.Add(li);
                }
                foreach (Lang l in langList)
                {
                    ListItem li = Utils.DecideLangDropdown(l.Lang_en, l.Lang_vi);
                    ddl_lang3.Items.Add(li);
                }
                ddl_lang1_lvl.Items.Insert(0, new ListItem(rm.GetString("Pleaseselect"), string.Empty));
                ddl_lang2_lvl.Items.Insert(0, new ListItem(rm.GetString("Pleaseselect"), string.Empty));
                ddl_lang3_lvl.Items.Insert(0, new ListItem(rm.GetString("Pleaseselect"), string.Empty));
                List<LangLvl> langlvlList = facade.GetLangLvl_en();
                foreach (LangLvl lvl in langlvlList)
                {
                    ListItem li = Utils.DecideLangDropdown(lvl.Langlvl_en, lvl.Langlvl_vi);
                    ddl_lang1_lvl.Items.Add(li);
                }
                foreach (LangLvl lvl in langlvlList)
                {
                    ListItem li = Utils.DecideLangDropdown(lvl.Langlvl_en, lvl.Langlvl_vi);
                    ddl_lang2_lvl.Items.Add(li);
                }
                foreach (LangLvl lvl in langlvlList)
                {
                    ListItem li = Utils.DecideLangDropdown(lvl.Langlvl_en, lvl.Langlvl_vi);
                    ddl_lang3_lvl.Items.Add(li);
                }
                //Load language
                if (Context.Profile.GetPropertyValue("CV.Language").ToString() != string.Empty)
                {
                    ListItem li_Lang1 = ddl_lang1.Items.FindByValue(Context.Profile.GetPropertyValue("CV.Language").ToString());
                    if (li_Lang1 != null) { li_Lang1.Selected = true; }
                    ListItem li_Langlvl1 = ddl_lang1_lvl.Items.FindByValue(Context.Profile.GetPropertyValue("CV.Language_lvl").ToString());
                    if (li_Langlvl1 != null) { li_Langlvl1.Selected = true; }
                    ddl_lang1_lvl.Enabled = true;
                }
                if (Context.Profile.GetPropertyValue("CV.Language2").ToString() != string.Empty)
                {
                    ListItem li_Lang2 = ddl_lang2.Items.FindByValue(Context.Profile.GetPropertyValue("CV.Language2").ToString());
                    if (li_Lang2 != null) { li_Lang2.Selected = true; }
                    ListItem li_Langlvl2 = ddl_lang2_lvl.Items.FindByValue(Context.Profile.GetPropertyValue("CV.Language2_lvl").ToString());
                    if (li_Langlvl2 != null) { li_Langlvl2.Selected = true; }
                    ddl_lang2_lvl.Enabled = true;
                }
                if (Context.Profile.GetPropertyValue("CV.Language3").ToString() != string.Empty)
                {
                    ListItem li_Lang3 = ddl_lang3.Items.FindByValue(Context.Profile.GetPropertyValue("CV.Language3").ToString());
                    if (li_Lang3 != null) { li_Lang3.Selected = true; }
                    ListItem li_Langlvl3 = ddl_lang3_lvl.Items.FindByValue(Context.Profile.GetPropertyValue("CV.Language3_lvl").ToString());
                    if (li_Langlvl3 != null) { li_Langlvl3.Selected = true; }
                    ddl_lang3_lvl.Enabled = true;
                }
                //Load other
                if (userId != null)
                {
                    ListItem li_EduLevel = ddl_EduLevel.Items.FindByValue(Context.Profile.GetPropertyValue("CV.EduLevel").ToString());
                    if (li_EduLevel != null) { li_EduLevel.Selected = true; }

                    txt_Major.Text = Context.Profile.GetPropertyValue("CV.Major").ToString();

                    ListItem li_YearOfExp = ddl_YearOfExp.Items.FindByValue(Context.Profile.GetPropertyValue("CV.YearsofExperience").ToString());
                    if (li_YearOfExp != null) { li_YearOfExp.Selected = true; }

                    txt_RelatedExp.Text = Context.Profile.GetPropertyValue("CV.RelatedExperience").ToString();
                    txt_MostRecentPosition.Text = Context.Profile.GetPropertyValue("CV.MostRecentPosition").ToString();

                    ListItem li_CurrentJobLevel = ddl_CurrentJobLevel.Items.FindByValue(Context.Profile.GetPropertyValue("CV.CurrentJobLevel").ToString());
                    if (li_CurrentJobLevel != null) { li_CurrentJobLevel.Selected = true; }

                    txt_Achievement.Text = Context.Profile.GetPropertyValue("CV.Achievements").ToString();
                    txt_Skill.Text = Context.Profile.GetPropertyValue("CV.SkillsInterests").ToString();
                    txt_Membership.Text = Context.Profile.GetPropertyValue("CV.Memberships").ToString();
                    txt_CurrentResidence.Text = Context.Profile.GetPropertyValue("CV.CurrentResidence").ToString();
                    ListItem li_Employment = ddl_Employment.Items.FindByValue(Context.Profile.GetPropertyValue("CV.DesiredEmployment").ToString());
                    if (li_Employment != null) { li_Employment.Selected = true; }

                    ListItem li_Employment2 = ddl_Employment2.Items.FindByValue(Context.Profile.GetPropertyValue("CV.DesiredEmployment2").ToString());
                    if (li_Employment2 != null) { li_Employment2.Selected = true; }

                    ListItem li_Employment3 = ddl_Employment3.Items.FindByValue(Context.Profile.GetPropertyValue("CV.DesiredEmployment3").ToString());
                    if (li_Employment3 != null) { li_Employment3.Selected = true; }

                    ListItem li_JobLevel = ddl_JobLevel.Items.FindByValue(Context.Profile.GetPropertyValue("CV.DesiredJobLevel").ToString());
                    if (li_JobLevel != null) { li_JobLevel.Selected = true; }

                    ListItem li_DesiredLocation = ddl_DesiredLocation.Items.FindByValue(Context.Profile.GetPropertyValue("CV.DesiredLocations").ToString());
                    if (li_DesiredLocation != null) { li_DesiredLocation.Selected = true; }

                    ListItem li_DesiredLocation2 = ddl_DesiredLocation2.Items.FindByValue(Context.Profile.GetPropertyValue("CV.DesiredLocations2").ToString());
                    if (li_DesiredLocation2 != null) { li_DesiredLocation2.Selected = true; }

                    ListItem li_DesiredLocation3 = ddl_DesiredLocation3.Items.FindByValue(Context.Profile.GetPropertyValue("CV.DesiredLocations3").ToString());
                    if (li_DesiredLocation3 != null) { li_DesiredLocation3.Selected = true; }

                    txt_SalaryFrom.Text = Context.Profile.GetPropertyValue("CV.SalaryFrom").ToString();
                    txt_SalaryTo.Text = Context.Profile.GetPropertyValue("CV.SalaryTo").ToString();

                    ListItem li_Currency = ddl_SalaryCurrency.Items.FindByValue(Context.Profile.GetPropertyValue("CV.SalaryCurrency").ToString());
                    if (li_Currency != null) { li_Currency.Selected = true; }
                    ListItem li_PaidType = ddl_SalaryPaidType.Items.FindByValue(Context.Profile.GetPropertyValue("CV.SalaryPaidType").ToString());
                    if (li_PaidType != null) { li_PaidType.Selected = true; }
                    ListItem li_DesiredTravel = ddl_DesiredTravel.Items.FindByValue(Context.Profile.GetPropertyValue("CV.DesiredTravel").ToString());
                    if (li_DesiredTravel != null) { li_DesiredTravel.Selected = true; }
                    ListItem li_Relocated = ddl_Relocated.Items.FindByValue(Context.Profile.GetPropertyValue("CV.WillingToRelocate").ToString());
                    if (li_Relocated != null) { li_Relocated.Selected = true; }

                    txt_HowSoonAvai.Text = Context.Profile.GetPropertyValue("CV.HowSoonToWork").ToString();

                    SalaryType = Convert.ToBoolean(Context.Profile.GetPropertyValue("CV.SalaryType").ToString());

                }
            }
        }