コード例 #1
0
ファイル: Bachillerato.aspx.cs プロジェクト: balbuenc/Empleos
 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);
     BachilleratoListView.DataBind();
 }
コード例 #2
0
ファイル: Bachillerato.aspx.cs プロジェクト: balbuenc/Empleos
        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());
                BachilleratoListView.DataBind();

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