Esempio n. 1
0
        protected void btnExcluirUsuario_Click(object sender, EventArgs e)
        {
            string msg = "";

            Resultado resultado = new Resultado();

            resultado = usuarioFacade.Excluir(Int32.Parse(gvPesqUsuarios.DataKeys[Int32.Parse((sender as ImageButton).CommandArgument)].Value.ToString()));
            if (resultado.Sucesso)
            {
                PesquisarUsuario();
            }
            string script = Consts.JavaScript.Alert(Consts.Funcoes.Replacer4js(msg), false);

            ScriptManager.RegisterStartupScript(this, this.GetType(), "alerta", script, true);
        }