62,270
社区成员
发帖
与我相关
我的任务
分享
void Application_AuthenticateRequest(object sender, EventArgs e)
{
if (HttpContext.Current != null && HttpContext.Current.User != null)
{
if (HttpContext.Current.User.Identity.IsAuthenticated)
{
//这边获取到请求页面的程序集
//反射获取该页面程序集是否有自定义属性----UserRoleAttribute,有,则调用
//UserRoleAttribute.自定义验证方法
}
}
}