protected void Page_Load(object sender, EventArgs e) { if (!System.Web.HttpContext.Current.User.Identity.IsAuthenticated) { Response.Redirect("~/Account/Login.aspx"); } if (!IsPostBack) { lblCNPJ.InnerText = HttpUtility.HtmlDecode(Request.QueryString["Cnpj"]); lblRazaoSocial.InnerText = HttpUtility.HtmlDecode(Request.QueryString["Nome"]); Denuncia denuncia = new Denuncia(); if (denuncia.Existe(lblCNPJ.InnerText, HttpContext.Current.User.Identity.Name) == true) { Response.Redirect(String.Format("~/DenunciaMsg.aspx?Retorno=close&IdDenuncia={0}", denuncia.IdDenuncia.ToString())); } } }