protected void Page_Load(object sender, EventArgs e) { var ptype = Request.QueryString.Get("type"); if (ptype != null) { if (ptype == "nonmanagement") { pagetype = 2; lblFrmHeader.Text = "Performance Appraisal - Non Management Staff"; } } else { pagetype = 1; lblFrmHeader.Text = "Performance Appraisal - Management Staff"; } if (IsPostBack.IsFalse()) { HRM_EvalDettList = new CustomList <HRM_EvalDet>(); PopulateCombo(); EnableControl(false); } else { Page.ClientScript.GetPostBackEventReference(this, String.Empty); String eventTarget = Request["__EVENTTARGET"].IsNullOrEmpty() ? String.Empty : Request["__EVENTTARGET"]; if (Request["__EVENTTARGET"] == "SearchEval") { hf_EvalKey.Value = "-1"; HRM_Eval searchEmp = Session[ASL.STATIC.StaticInfo.SearchSessionVarName] as HRM_Eval; if (searchEmp.IsNotNull()) { hf_EvalKey.Value = searchEmp.EvalKey.ToString(); EmpHistList = _evalManager.GetAllHRM_Eval(hf_EvalKey.Value.ToString()); if (EmpHistList.Count > 0) { GetValueFromList(EmpHistList[0]); } //LoadEmployeeInfo(txtEmployee.Text.ToString()); LoadGridProfermanceArea(hf_EvalKey.Value.ToString()); EnableControl(true); } } } }