protected void clearfields()
 {
     try
     {
         RTB_RasiedBy.Text       = string.Empty;
         RTB_Designation.Text    = string.Empty;
         RTB_Dateofcreation.Text = string.Empty;
         RTB_Businessunit.Text   = string.Empty;
         RTB_ApplicantName.Text  = string.Empty;
         RTB_Department.Text     = string.Empty;
         // RCMB_Applicant.ClearSelection();
         RTB_JobRequistionDescription.Text = string.Empty;
         RCMB_JobRequistion.ClearSelection();
         RCB_SalaryStructure.ClearSelection();
         RCMB_leavestructure.ClearSelection();
         RDP_JoinDate.SelectedDate  = null;
         RDP_Offerdate.SelectedDate = null;
         RTB_OfferSalary.Text       = string.Empty;
         RCMB_Applicant.ClearSelection();
         RCMB_Applicant.Items.Clear();
         RCMB_Applicant.Items.Insert(0, new Telerik.Web.UI.RadComboBoxItem("Select", "-1"));
         RDP_JoinDate.MinDate = Convert.ToDateTime("01-01-1900");
         RTB_Directorate.Text = string.Empty;
         RTB_Scale.Text       = string.Empty;
         //RDP_Offerdate.MinDate = Convert.ToDateTime("01-01-1900");
     }
     catch (Exception ex)
     {
         SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "frm_JobOffers", ex.StackTrace, DateTime.Now);
         Response.Redirect("~/Frm_ErrorPage.aspx");
     }
 }
 private void LoadJobRequsitionCode_Edit()
 {
     try
     {
         RCMB_JobRequistion.Items.Clear();
         DataTable DT = new DataTable();
         _obj_Rec_JobRequisition                 = new RECRUITMENT_JOBREQUISITION();
         _obj_Rec_JobRequisition.OPERATION       = operation.Empty1;
         _obj_Rec_JobRequisition.ORGANISATION_ID = Convert.ToInt32(Session["ORG_ID"]);
         DT = Recruitment_BLL.get_JobReqDetails(_obj_Rec_JobRequisition);
         RCMB_JobRequistion.DataSource     = DT;
         RCMB_JobRequistion.DataTextField  = "JOBREQ_REQCODE";
         RCMB_JobRequistion.DataValueField = "JOBREQ_ID";
         RCMB_JobRequistion.DataBind();
         RCMB_JobRequistion.Items.Insert(0, new Telerik.Web.UI.RadComboBoxItem("Select", "-1"));
     }
     catch (Exception ex)
     {
         SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "frm_JobOffers", ex.StackTrace, DateTime.Now);
         Response.Redirect("~/Frm_ErrorPage.aspx");
     }
 }