加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

c# – CSS未加载表单身份验证

发布时间:2020-12-15 23:59:27 所属栏目:百科 来源:网络整理
导读:我在很多网站上看到了其中的几个主题,但我仍然遇到了问题.我在 / configuaration之前将其添加到我的web.config的底部 location path="Form.css" system.web authorization allow users="*"/ /authorization /system.web /location 然而我的css仍然没有为所有
我在很多网站上看到了其中的几个主题,但我仍然遇到了问题.我在< / configuaration>之前将其添加到我的web.config的底部

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

然而我的css仍然没有为所有用户加载.

这是我的web.config的表单部分

<authentication mode="Forms">
      <forms name ="WebApp.ASPXAUTH"
            loginUrl="login.aspx"
             protection="All"
             path ="/"/>
    </authentication>
    <authorization>
      <allow users ="*"/>
    </authorization>

还有其他我想念的东西吗?

解决方法

将您的CSS放在一个不受保护的文件夹中,这应该适合您.

<link rel="stylesheet" src="path of the stylesheet" type="text/css">

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读