예제 #1
0
        protected void GridView_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            bool operacion = false;

            try
            {
                int id = int.Parse(e.Values["ID"].ToString());
                operacion = materia.estatus(id);
            }
            catch (Exception ex)
            {
            }

            if (operacion)
            {
                this.Label1.Text     = "Operación exitosa!";
                this.Label1.CssClass = "successNotification";
            }
            else
            {
                this.Label1.Text     = "Operación fallida!";
                this.Label1.CssClass = "failureNotification";
            }
            refreshData();
        }