you need to assign the role, preferably inside Application_AuthenticateRequest, seeRole-based Security with Forms Authentication
http://www.codeproject.com/aspnet/formsroleauth.asp
http://www.codeproject.com/aspnet/formsroleauth.asp
解决方案 »
- 存储过程导出的excel出现进程问题···有人做过搜索····数据对比方面的不?
- 新手求助!数据库更新问题!!
- 高手看看这段幻灯显示代码怎么修改?
- 中软的面试题,大家帮我写2条SQl语句
- 高手帮忙啊
- 为什么用dreamweaver生成的代码放到VS2005中会出错,dreamweaver生成的代码支持asp.net2.0吗???????
- 大虾告诉我为什么老是出现这个问题 Could not load type 'mycounter.myindex'.
- 怎么改了.cs文件后,网页不报错啊?
- 动态生成TREEVIEW后SelectedNodeChange事件问题
- 太奇怪了!加密解密在ASP.net与EXE中不一样!为什么?
- 请教:怎样才能在另一个htm页面中得到response.write返回的值?
- 把学生的成绩用datagrid显示出来的时候,怎样才能在datagrid中加入一列,并自动依次在每行上产生1,2,3,4...的名次顺序呢?
protected void Application_AuthenticateRequest(Object sender, EventArgs e)
{
if(Context.Request.IsAuthenticated)
{
Context.User = new User(Context.User.Identity);
}
}