Global.asaxのPostAuthenticateRequestイベントを使用するにはどうすればよいですか?私はこのチュートリアルに従っていますが、 PostAuthenticateRequestイベントを使用する必要があると記載されています。Global.asaxイベントを追加すると、マークアップファイルと分離コードファイルの2つのファイルが作成されました。コードビハインドファイルの内容は次のとおりです
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)
{
}
}
}
今私が入力すると
protected void Application_OnPostAuthenticateRequest(object sender, EventArgs e)
正常に呼び出されます。ここで、 PostAuthenticateRequestがこのApplication_OnPostAuthenticateRequestメソッドにどのようにバインドされているかを知りたいですか?メソッドを他の方法に変更するにはどうすればよいですか?