会员ASP.NET,VS2008 [英] Membership ASP.NET , VS2008

查看:84
本文介绍了会员ASP.NET,VS2008的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在开发Web应用程序.所以我为每个网页使用母版页.我还在App_Theme文件夹中使用样式表.

当我不使用表格授权时,我们的网页就可以了.但是如果我在Web配置中添加了表单授权,则< b>可以显示网页而没有图片和样式表.</b>

我在Web.config中添加这样的内容

< authentication>
< loginurl/>
</authentication>

<授权>
< deny users =?" />
< allow users ="*"/>
</authorization>


怎么会?我不知道请帮帮我

Hi All,

I am developing Web Application. So i use master page for each web page. i also use stylesheet in App_Theme folder.

when i don''t use Form Authorization our web page is ok. but if i add form authorization in web config, the web page can be shown <b>without pictures and style sheet.</b>

i add like this in Web.config

<authentication>
<loginurl />
</authentication>

<authorization>
<deny users="?" />
<allow users="*" />
</authorization>


How come? i don''t know please help me

推荐答案

请尝试:
<authentication>
      <loginurl />
</authentication>
<authorization>
      <allow users="*" />
</authorization>



如果可能的话,请明智地指定授权"路径,例如:



If possible for you then give Authorization path wise, like:

<location path="Images">
        <system.web>
            <authorization>
                <allow users="*"/>
            </authorization>
        </system.web>
    </location>




有关授权的详细信息,请参阅:
如何:控制ASP.NET应用程序中的授权权限 [ ASP.NET中的表单身份验证和授权 [




For details on Authorization, refer:
HOW TO: Control Authorization Permissions in an ASP.NET Application[^]
Form authentication and authorization in ASP.NET[^]


这篇关于会员ASP.NET,VS2008的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆