protected void btnConfirm_Click(object sender, EventArgs e) { BEAdmin objBEAdmin = new BEAdmin(); BAdmin objBAdmin = new BAdmin(); objBEAdmin.IntStudentID = Convert.ToInt32(Session[BaseClass.EnumPageSessions.StudentID].ToString()); objBAdmin.BDeleteStudent(objBEAdmin); trMessage.Visible = true; if (objBEAdmin.DsResult != null && objBEAdmin.DsResult.Tables[0].Rows.Count > 0) { if (Convert.ToBoolean(objBEAdmin.DsResult.Tables[0].Rows[0][0])) { trUpdate.Visible = false; lblInfo.Text = Resources.AppMessages.Admin_DeletStudent_Success_StudentDeleted; lblInfo.ForeColor = System.Drawing.Color.FromName(Resources.AppConfigurations.Color_Success); ImgInfo.ImageUrl = Resources.AppConfigurations.Image_Success; tdInfo.Attributes.Add("style", Resources.AppConfigurations.Color_Table_Success); } else { trUpdate.Visible = true; lblInfo.Text = Resources.AppMessages.Admin_DeletStudent_Error_DeleteStudentPending; lblInfo.ForeColor = System.Drawing.Color.FromName(Resources.AppConfigurations.Color_Error); ImgInfo.ImageUrl = Resources.AppConfigurations.Image_Error; tdInfo.Attributes.Add("style", Resources.AppConfigurations.Color_Table_Error); } } else { trUpdate.Visible = true; lblInfo.Text = Resources.AppMessages.Admin_DeletStudent_Error_DeleteStudent; lblInfo.ForeColor = System.Drawing.Color.FromName(Resources.AppConfigurations.Color_Error); } }