protected void btnExcluirPedSvc_Click(object sender, EventArgs e) { //tesatarpq não está funcionando try { var idSvc = HttpContext.Current.Session["idSvcExcluir"].ToString(); if (ServicoPedido.Excluir(int.Parse(idSvc))) { var idProj = Request.QueryString["id"]; idProj = Criptografia.Decrypt(idProj.Replace('_', '+')); CarregaTabela(); } else { ltlMsn.Text = "<div class=\"alert alert-block alert-danger fade in\"><button data-dismiss=\"alert\" class=\"close\" type=\"button\">×" + "</button><p><i class=\"fa fa-times-circle fa-lg\"></i> ERRO ao Salvar Objetivo Estratégico!!</p></div>"; } } catch (Exception ex) { ltlMsn.Text = "<div class=\"alert alert-block alert-danger fade in\"><button data-dismiss=\"alert\" class=\"close\" type=\"button\">×" + "</button><p><i class=\"fa fa-times-circle fa-lg\"></i> ERRO:" + ex.Message + "</p></div>"; } }