protected void btnSave_Click(object sender, EventArgs e)
        {
            int result = 0;

            try
            {
                if (Valid())
                {
                    objTrainingAndDevelopmentBAL = new TrainingAndDevelopmentBAL();
                    objTrainingAndDevelopmentBAL.TrainingApprovalSave(this.MemberOrgId, ddlFirstLevel.SelectedValue, ddlSecondLevel.SelectedValue, ddlThirdLevel.SelectedValue, hdnHighestEmpId.Value, LoggedInEmpId, out result);
                    if (result > 0)
                    {
                        ScriptManager.RegisterStartupScript(this, this.GetType(), "Training & Development", "showSuccessToast('" + ResourceReader.GetMessage("TrainingAndDevelopment_044") + "');", true);
                    }
                    else
                    {
                        ScriptManager.RegisterStartupScript(this, this.GetType(), "Training & Development", "showErrorToast('" + ResourceReader.GetMessage("TrainingAndDevelopment_045") + "');", true);
                    }
                }
            }
            catch (Exception ex)
            {
                Comman.LogException(ex, PAGE_TITLE, Comman.MemberOrgId, true);
            }
        }
 protected Boolean Valid()
 {
     if (ddlFirstLevel.SelectedValue == "3" || ddlSecondLevel.SelectedValue == "3" || ddlThirdLevel.SelectedValue == "3")
     {
         if (string.IsNullOrEmpty(txtHighestEmployee.Text))
         {
             ScriptManager.RegisterStartupScript(this, this.GetType(), "Training & Development", "showErrorToast('" + ResourceReader.GetMessage("TrainingAndDevelopment_046") + "');", true);
             return(false);
         }
         return(true);
     }
     return(true);
 }