views:

55

answers:

1

Hi,

I need to restrict multiple users from logging into my system. I am using Application_OnPostAuthenticateRequest event in global.asax to see if anybody is logged in. It works really well.

But CSS is not loading and the screen looks horrible. If I comment out the code in that event, the page renders perfectly...

What am I missing? What does Application_OnPostAuthenticateRequest has anything to do with CSS??

Thanks a lot for the help

+2  A: 

Move your css to a folder that contains the following web.config

<system.web>
  <authorization>
    <allow users="*"/>
  </authorization>
</system.web>

Then change your header text to point to the new css location. If you ar using themes simply add the web.config file to you theme folder.

Note: This overrides your security settings and allows everyone access to the folder containing the additional web.config file. This also includes sub folders

Dug
Its fixed now... Had to use a Web.Config for CSS and JavaScript folder...Thanks a lot for the help guys...