使用asp.net表单身份验证,这样只有登录的用户才能查看网站
||
Login.aspx,passwordrecovery.aspx和register.aspx应该是登录用户只能访问的页面。我的webconfig中有以下内容:
<authentication mode=\"Forms\">
<forms loginUrl=\"Login.aspx\" defaultUrl=\"Login.aspx\" />
</authentication>
<authorization>
<deny users=\"?\"/>
</authorization>
我的webconfig的配置元素中包含以下内容:
<location path=\"images\">
<system.web>
<authorization>
<allow users=\"*\" />
</authorization>
</system.web>
</location>
<location path=\"css\">
<system.web>
<authorization>
<allow users=\"*\" />
</authorization>
</system.web>
</location>
<location path=\"login.aspx\">
<system.web>
<authorization>
<allow users=\"*\" />
</authorization>
</system.web>
</location>
<location path=\"register.aspx\">
<system.web>
<authorization>
<allow users=\"*\" />
</authorization>
</system.web>
</location>
<location path=\"passwordrecovery.aspx\">
<system.web>
<authorization>
<allow users=\"*\" />
</authorization>
</system.web>
</location>
我收到一个错误:ASP.NET Ajax客户端框架无法加载。查看任何公共页面时显示警报框。如何允许访问asp.net客户端框架(使用位置标记?)?
没有找到相关结果
已邀请:
3 个回复
吞睫素
递劝臼类洪
现在加载Ajax客户端框架-错误消息消失了。对于那些不使用Telerik控件的人-我确定您可以使用类似以下内容的控件:
藐刚