Exemple #1
0
    protected void ProgramDelete(object source, CommandEventArgs e)
    {
        int count = 0;

        BLL_LMS_Training.Del_TrainingProgram_Chk(Convert.ToInt32(e.CommandArgument.ToString()), ref count);
        if (count > 0)
        {
            string js = "alert('System cannot delete already scheduled program.');";
            ScriptManager.RegisterStartupScript(this, this.GetType(), "alert2", js, true);
            return;
        }
        else
        {
            int Result = BLL_LMS_Training.Del_TrainingProgram(Convert.ToInt32(e.CommandArgument.ToString()), Convert.ToInt32(Session["USERID"]));
        }

        BindProgramItemInGrid();
    }