我如何使用<> PostAuthenticateRequest event of Global.asax? http://www.asp.net/security/tutorials/forms-authentication-configuration-and-advanced-topics-cs”rel=“nofollow”>this tutorial,并提到我必须使用 PostAuthenticateRequest activity. 当我加入全球时。 作为大事,它创建了两个档案,即标识和编码背后档案。 这里是密码背后档案的内容。
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)
{
}
}
}
Now when I type the
protected void Application_OnPostAuthenticateRequest(object sender, EventArgs e)
它得到成功呼吁。 我现在想知道“黎明”是如何的。 PostAuthenticateRequestompulsory to this Application_OnPostAuthenticateRequest methods? 我怎么能把方法改变到其他方法?