CSS没有被应用非认证ASP.NET页 [英] CSS not being applied on non authenticated ASP.NET page

查看:81
本文介绍了CSS没有被应用非认证ASP.NET页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

开发时(正常工作现场),直到用户已认证(登录)为我们的网站的网页不拿起正确的CSS。

When developing (works fine live) the pages for our website don't pick up the correct CSS until the user has authenticated (logged on).

所以,登录和注销形式看起来很糟糕,但一旦网站里面,CSS再次工作。

So the Logon and Logoff forms look bad, but once inside the site, the CSS works again.

我猜这是某种形式的身份验证问题的?还没有真正看着太多,因为它在开发所以不是一个巨大的问题时是唯一的,但会很高兴地知道如何解决它。

I'm guessing it's some kind of authentication issue? Haven't really looked into it too much because it's only when working on dev so not a huge issue, but would be nice to know how to fix it.

推荐答案

检查并确保该CSS文件本身不是您所保护的区域。如果需要,可以通过手动在web.config中排除的文件。

Check and make sure that the CSS file itself is not in an area that you are securing. You can manually exclude the file via the web.config if needed.

这篇关于CSS没有被应用非认证ASP.NET页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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