我有以下设置:
在我的站点地图文件中,我有一些定义了角色的网址。 :
<siteMapNode url="~/directurl" roles="Clients">
<siteMapNode url="~/directurl.aspx" roles="Clients">
当我同时提出要求时:
if (Application.Context.User == null)
{
/* This is where the first request ends */
}
else
{
/* This is where the second request ends */
/* This is where they both should be */
}
我需要做什么才能填写用户?
答案 0 :(得分:2)
。您需要添加以下
<modules runAllManagedModulesForAllRequests="true">
阅读此博客
http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx