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); UniversidadListView.DataBind(); }
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()); UniversidadListView.DataBind(); ErrorLabel.Text = "El Registro se eliminò correctamente."; ErrorLabel.Visible = true; FadeOut(ErrorLabel.ClientID, 3000); } }