小编Tux*_*Tux的帖子

Global.asax PostAuthenticateRequest事件绑定是如何发生的?

如何使用Global.asax 的PostAuthenticateRequest事件?我正在关注本教程并提到我必须使用PostAuthenticateRequest事件.当我添加Global.asax事件时,它创建了两个文件,标记和代码隐藏文件.这是代码隐藏文件的内容

using System;
using System.Web;
using System.Web.Security;
using System.Web.SessionState;

namespace authentication
{
    public class Global : System.Web.HttpApplication
    {    
        protected void Application_Start(object sender, EventArgs e)
        {    
        }

        protected void Session_Start(object sender, EventArgs e)
        {    
        }

        protected void Application_BeginRequest(object sender, EventArgs e)
        {
        }

        protected void Application_AuthenticateRequest(object sender, EventArgs e)
        {    
        }

        protected void Application_Error(object sender, EventArgs e)
        {    
        }

        protected void Session_End(object sender, EventArgs e)
        {    
        }

        protected void Application_End(object sender, EventArgs e)
        { …
Run Code Online (Sandbox Code Playgroud)

.net asp.net events autoeventwireup global-asax

8
推荐指数
1
解决办法
1万
查看次数

标签 统计

.net ×1

asp.net ×1

autoeventwireup ×1

events ×1

global-asax ×1