HttpModule编写权限问题
public void Init(HttpApplication context){
context.PreRequestHandlerExecute += new EventHandler(context_AcquireRequestState);
}
void context_AcquireRequestState(object sender, EventArgs e)
{
HttpApplication application = (HttpApplication)sender;
if (application.Context.Session["UserName"] != null)
{
//在这里判断权限
}
}
Default.aspx代码:
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<a href="模块1/Default.aspx">进入模块1</a><br />
<a href="模块2/Default.aspx">进入模块2</a></div>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Button1" />
</Triggers>
</asp:UpdatePanel>
<asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" />
这样不能AJAX出发BUTTON,请问有人知道怎么解决吗? --------------------编程问答-------------------- 我看了半天,没看懂,楼主的内容和标题之间的联系 --------------------编程问答-------------------- o_O --------------------编程问答-------------------- 看不明白~~~~~~~
补充:.NET技术 , ASP.NET