CSS is not loaded in the login page when using Forms Authentication in Asp.Net. After logging in it appears correctly.

This is because Asp.Net thinks that your css files require authenitication. To fix this simply place a web.config file in your css and/or App_Themes directory with these contents:

<?xml version="1.0"?>
<configuration>
    <system.web>
      <authorization>
          <allow users="*" />
	  </authorization>
    </system.web>
</configuration>

Last edited Nov 7, 2007 at 7:19 PM by gmoothart, version 1

Comments

No comments yet.