コード例 #1
0
        protected void ibnCumplir_Click(object sender, ImageClickEventArgs e)
        {
            ImageButton  ibn              = (ImageButton)sender;
            RepeaterItem fila             = (RepeaterItem)ibn.Parent;
            short        _Departamento_id = short.Parse(((Label)fila.Controls[1]).Text);
            short        _Funcionario_id  = short.Parse(((Label)fila.Controls[3]).Text);
            bool         obeRespuesta     = _TB_ResponsableBL.EliminarTB_Responsable(_Departamento_id, _Funcionario_id);

            if (obeRespuesta)
            {
                ScriptManager.RegisterClientScriptBlock(this.Page, this.Page.GetType(), "jAlert", "jAlert('Se eliminó responsable con exito!');", true);
                GenerarTabla();
            }
            else
            {
            }
            //GenerarTabla(((Fnc_FuncionariosBE)Session["FNC_Funcionarios"]).Funcionario_Id);
        }