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 LoadAssetGrid()
    {
        try
        {
            _obj_Smhr_EmpAssetDoc           = new SMHR_EMPASSETDOC();
            _obj_Smhr_EmpAssetDoc.OPERATION = operation.Empty;

            _obj_Smhr_EmpAssetDoc.EMPASSETDOC_TYPE   = "Assets";
            _obj_Smhr_EmpAssetDoc.EMPASSETDOC_EMP_ID = Convert.ToInt32(rcmb_Employee.SelectedItem.Value.ToString());
            _obj_Smhr_EmpAssetDoc.ORGANISATION_ID    = Convert.ToInt32(Session["ORG_ID"]);
            DataTable dt2 = BLL.get_EmpAssetDoc(_obj_Smhr_EmpAssetDoc);
            if (dt2.Rows.Count != 0)
            {
                Rg_AssetDetails.DataSource = dt2;
                Rg_AssetDetails.DataBind();
            }
            else
            {
                lbl_AsstMessage.Visible = true;
            }
        }
        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");
        }
    }