protected void ClearFields()
    {
        try
        {
            rcmb_Employee.SelectedIndex = -1;

            rdtp_RelDate.SelectedDate   = null;
            lnk_PersonalDetails.Enabled = false;
            Rg_VNoDues.DataSource       = null;
            Rg_VNoDues.DataBind();
            Rg_AssetDetails.DataSource = null;
            Rg_AssetDetails.DataBind();
            Rg_Document.DataSource = dt_null;
            Rg_Document.DataBind();
            rdtp_ResgDate.SelectedDate = null;
            btn_Submit.Enabled         = false;
            //Rm_EmpRelive_page.SelectedIndex = 0;
            //  rd_Rel.Visible = false;
            rg_Reportees.Visible = false;
        }
        catch (Exception ex)
        {
            SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "frm_Relieving", ex.StackTrace, DateTime.Now);
            Response.Redirect("~/Frm_ErrorPage.aspx");
        }
    }
 protected void LoadNoDueGrid()
 {
     try
     {
         _obj_Smhr_Masters                 = new SMHR_MASTERS();
         _obj_Smhr_Masters.OPERATION       = operation.Select;
         _obj_Smhr_Masters.MASTER_TYPE     = "NODUE";
         _obj_Smhr_Masters.ORGANISATION_ID = Convert.ToInt32(Session["ORG_ID"]);
         DataTable dt1 = BLL.get_MasterRecords(_obj_Smhr_Masters);
         if (dt1.Rows.Count != 0)
         {
             Rg_VNoDues.DataSource = dt1;
             Rg_VNoDues.DataBind();
         }
     }
     catch (Exception ex)
     {
         SMHR.BLL.Error_Log(Session["USER_ID"].ToString(), ex.TargetSite.ToString(), ex.Message.Replace("'", "''"), "frm_Relieving", ex.StackTrace, DateTime.Now);
         Response.Redirect("~/Frm_ErrorPage.aspx");
     }
 }