protected void btnExperienceAdd(object sender, EventArgs e) { try { string id = string.IsNullOrEmpty((hndExpID.Value)) ? "0" : hndExpID.Value; string desc = CLOVA.AddUpdateEmployerExp(Convert.ToInt32(id), Convert.ToInt32(hndID.Value), txtCompanyName.Text, Convert.ToInt32(cbCompanyType.SelectedValue), Convert.ToInt32(cbExperienceCountry.SelectedValue), Convert.ToInt32(cbRole.SelectedValue), Convert.ToDateTime(dtStartDate.SelectedDate), Convert.ToDateTime(dtEndDate.SelectedDate), Convert.ToInt32(chkPresent.Checked), txtDescription.Text, txtLeavingReason.Text, Convert.ToInt32(hndUserID.Value), Convert.ToInt32(hndUserID.Value)); if (desc.ToLower().Contains("success")) { hndExpID.Value = txtCompanyName.Text = txtDescription.Text = txtLeavingReason.Text = string.Empty; cbCompanyType.SelectedValue = "0"; cbRole.SelectedValue = "0"; cbExperienceCountry.SelectedValue = "0"; dtStartDate.Clear(); dtEndDate.Clear(); chkPresent.Checked = false; txtLeavingReason.Text = string.Empty; txtLeavingReason.Enabled = true; dtEndDate.Enabled = true; DataTable dt; CLOVA.GetEmployerExperience(Convert.ToInt32(hndID.Value), out dt); grdExperience.DataSource = dt; grdExperience.DataBind(); ExperienceID.Disabled = false; Session["Success"] = desc; return; } else { Session["Error"] = desc; return; } } catch (Exception ex) { Log.LogError(ex.Message, ex.StackTrace.ToString(), "btnEducationAdd", "2030", Convert.ToInt32(Session["UserID"]).ToString(), "CreateProfile"); Session["Error"] = "2030 - Other Vendor Software related Error on Server."; } }