ASP.NET theme not rendering correctly

前端 未结 5 1092
小蘑菇
小蘑菇 2021-01-28 06:12

I have a small web application which uses themes. The themes work on host, so on preinit, if the host = a, load x theme, if the host = b, load y theme.

In my code this

5条回答
  •  自闭症患者
    2021-01-28 06:52

    Are you using the built-in web server? When running in ASP.Net Development Server, the styles in App_Themes won't be used on any unauthenticated page (such as Login.aspx or ForgotPassword.aspx). That's because the user doesn't have browse permissions on that folder yet, or the App_Themes folder lacks browsing permissions. Apparently, IIS handles this but Cassini doesn't.

    Try adding this to web.config to let Themes and styles work before authentication.

    Or, if possible, switch to running the app on IIS on your machine.

提交回复
热议问题