Ejemplo n.º 1
0
        protected override void OnLoad(EventArgs e)
        {
            string url = PageUrl.ToUpper().Trim();

            if (_IsAuthenticate)
            {
                string rawUrl = PageRawUrl.ToUpper().Trim();
                if (!Permissions.Any(p => p.MOD_URL.ToUpper().Trim() == url ||
                                     p.MOD_URL.ToUpper().Trim() == rawUrl))
                {
                    b_MissingParameter("无权访问该页面.");
                }
            }

            base.OnLoad(e);
        }