请问我在VS2003 C# 下开发WEB 里边有个文件Global.asax 文件中有个事件Application_AuthenticateRequest 可以在此处写验证登录后的用户角色;
protected void Application_AuthenticateRequest(Object sender, EventArgs e)
{
HttpApplication app=(HttpApplication)sender;
if (app.Request.IsAuthenticated)
....
....
ppal= new GenericPrincipal(Context.User.Identity,roles);
Context.User=ppal;而现在我用VS2005 C# 建了一个Global.asax 文件 但边没有事件Application_AuthenticateRequest
在VS2005中我如何办???
protected void Application_AuthenticateRequest(Object sender, EventArgs e)
{
HttpApplication app=(HttpApplication)sender;
if (app.Request.IsAuthenticated)
....
....
ppal= new GenericPrincipal(Context.User.Identity,roles);
Context.User=ppal;而现在我用VS2005 C# 建了一个Global.asax 文件 但边没有事件Application_AuthenticateRequest
在VS2005中我如何办???
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货