看到一个控件,利用特性来进行权限验证,下面是它的一段代码,它还介绍说是在httpmodule里进行权限验证的,
那样的话,在httpmodule的那个位置,是执行按钮动作函数呢?
那位前辈能知道,谢谢![PopedomTypeAttaible(PopedomType.Edit)]
[System.Security.Permissions.PrincipalPermission(System.Security.Permissions.SecurityAction.Demand, Role = "OR")]
protected void Button2_Click(object sender, EventArgs e)
{
Response.Write("修改权限");
}在HttpModule里那块是执行按钮等动作的?            application.BeginRequest += new EventHandler(application_BeginRequest);            application.EndRequest += new EventHandler(application_EndRequest);            application.PreRequestHandlerExecute += new EventHandler(application_PreRequestHandlerExecute);            application.PostRequestHandlerExecute += new EventHandler(application_PostRequestHandlerExecute);            application.ReleaseRequestState += new EventHandler(application_ReleaseRequestState);            application.AcquireRequestState += new EventHandler(application_AcquireRequestState);            application.AuthenticateRequest += new EventHandler(application_AuthenticateRequest);            application.AuthorizeRequest += new EventHandler(application_AuthorizeRequest);            application.ResolveRequestCache += new EventHandler(application_ResolveRequestCache);            application.PreSendRequestHeaders += new EventHandler(application_PreSendRequestHeaders);            application.PreSendRequestContent += new EventHandler(application_PreSendRequestContent);