protected void Page_Load(object sender, EventArgs e) { Orcamento objOrcamento = new Orcamento(); OrcamentoDAL dbOrcamento = new OrcamentoDAL(); string comunicado = string.Empty; int qtdeOrcamento = dbOrcamento.ObertOrcamentosPendentes(ref erro); if (qtdeOrcamento > 0) { comunicado = ", temos " + qtdeOrcamento + " Orçamento(s) pendente(s)"; } NotaFiscal objNotaFiscal = new NotaFiscal(); NotaFiscalDAL dbNotaFiscal = new NotaFiscalDAL(); int qtdeNotasFiscais = dbNotaFiscal.ObterNotasFiscaisPendentes(ref erro); if (qtdeNotasFiscais > 0) { comunicado += " temos " + qtdeNotasFiscais + " NF Vencida(s)"; } HttpCookie cookie = Request.Cookies["login"]; lblboasVindas.Text = "Bem vindo " + cookie.Value + comunicado; }