Exemple #1
0
    protected void btnEliminar_Click(object sender, EventArgs e)
    {
        if (this.grdContactos.SelectedIndex == -1)
        {
            MostrarMensaje("Debe seleccionar el contacto a eliminar");
        }
        else
        {
            string[] ids = Session["ids"].ToString().Split(';');

            NegocioContactos.EliminarContacto(int.Parse(ids[grdContactos.SelectedIndex]));
            int idDen = int.Parse(Session["idDen"].ToString());
            CargarGrilla(idDen, DropDownList1.SelectedValue);
            txtTel.Text = "";
            grdContactos.SelectedIndex = -1;
            this.btnAplicar.Enabled    = false;
            this.btnAplicar.CssClass   = "ButtonBlue11pxDisable";
        }
    }