예제 #1
0
 protected void EditFormView_ItemUpdated(object sender, FormViewUpdatedEventArgs e)
 {
     EditFormView.ChangeMode(FormViewMode.ReadOnly);
     ErrorLabel.Text    = "El Registro de actualizò correctamente";
     ErrorLabel.Visible = true;
     FadeOut(ErrorLabel.ClientID, 5000);
     CarreraListView.DataBind();
 }
예제 #2
0
        protected void ListView_ItemCommand(object sender, ListViewCommandEventArgs e)
        {
            if (e.CommandName == "Editar")
            {
                GetRecordToUpdate(e.CommandArgument.ToString());

                ScriptManager.RegisterStartupScript(this, this.GetType(), "",
                                                    "$('#editModal').modal('show');", true);
            }
            else if (e.CommandName == "Eliminar")
            {
                DeleteRecord(e.CommandArgument.ToString());
                CarreraListView.DataBind();

                ErrorLabel.Text    = "El Registro se eliminò correctamente.";
                ErrorLabel.Visible = true;
                FadeOut(ErrorLabel.ClientID, 3000);
            }
        }