/// <summary>
 /// Bind Country to ddlCountryPresent control
 /// </summary>
 private void BindCountry()
 {
     try
     {
         RegisterHrADBAL registerHrADBAL = new RegisterHrADBAL();
         DataSet datasetCountry = new DataSet();
         datasetCountry = registerHrADBAL.GetCountry();
         // Check dataset is not null
         if (datasetCountry != null)
         {
             ddlCountryPresent.DataSource = datasetCountry;
             ddlCountryPresent.DataTextField = "CountryName";
             ddlCountryPresent.DataValueField = "CountryId";
             ddlCountryPresent.DataBind();
             ddlCountryPresent.Items.Insert(0, new ListItem("--Select--", "0"));
         }
     }
     catch (Exception)
     {
         throw;
     }
 }