开发者

MVC3 Custom Membership provider

I'm working in a MVC3 application using Custom Membership Provide开发者_JAVA技巧r. The problem is when I get the display of the login page, for some reason the page doesn't load the style sheet neither the javascripts. Is something that I need to add and I'm missing? Something on the Global.asax or the config file? Thanks in advance.


Your view is being rendered but you're not seeing the styles applied, correct?

So, check your page and see what path is being generated for the scripts, and verify that the path is correct. It sounds like a routing issue.

Are you using the following method to resolve your stylesheet?

<link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />

Depending on your browser, you'll want to invoke developer tools (IE/Chrome) or Firebug (FireFox) and see what network requests are being made.

Hope this helps.


Well, finally I get the solution. The problem was the permission on the Content folder, where the style sheet resides. Adding authorization to all users for that folder on the config file fixed the problem.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜