Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            GridViewDenuncias.PreRender += GridViewDenuncias_PreRender;

            if (!System.Web.HttpContext.Current.User.Identity.IsAuthenticated)
                Response.Redirect("~/Account/Login.aspx");

            if (!IsPostBack)
            {
                Denuncia denuncia = new Denuncia();
                denuncia.DenunciasUsuario(GridViewDenuncias, HttpContext.Current.User.Identity.Name);
            }
        }