【发布时间】:2010-09-15 02:08:05
【问题描述】:
我在我的 ASP.net MVC 网站中更改了 MembershipProvider,现在登录页面的样式表没有被正确引用。如果这可能是原因,下面是我的 web.config 中表单标签的副本。除了名称和超时属性之外,它看起来与新项目生成的相同。
<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" />
【问题讨论】:
标签: css asp.net-mvc href membership-provider