我在我的ASP.net MVC网站中更改了MembershipProvider,现在登录页面的样式表没有被正确引用。下面是我的web.config中的表格标签的副本,如果这可能是原因。除了名称和超时属性外,它看起来与新项目生成的相同。ASP.net MVC中的MembershipProviders会影响样式表链接吗?
<authentication mode="Forms">
<forms loginUrl="~/Account/Login" name=".ADAuthCookie" timeout="10" />
</authentication>
当我现在访问的页面,对CSS的链接标签如下所示:
<link href="../Content/Site.css" rel="stylesheet" type="text/css" />
当应该这个样子:
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
我不知道这件事情开始在.NET 2.0中存在。很有用!谢谢。 – 2008-10-03 18:18:16