Click here to Skip to main content
15,920,801 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Even after adding css to be allowed without authentication webpage isn't rendering it..

code to make css run:

C#
<location path="Styles/Site.css">
   <system.web>
     <authorization>
       <allow users="*"/>
     </authorization>
   </system.web>
 </location>


also the page to be used without authentication on which this style sheet is needed is taken care.

 <location path="defvd.aspx">
    <system.web>
      <authorization>
        <allow users="*"/>
      </authorization>
    </system.web>
  </location>
<pre lang="c#">


But still defvd is unable to pick style sheet.
Posted

even i tried:

C#
<location path="Stlyes">
    <system.web>
        <authorization>
            <allow users="*" />
        </authorization>
    </system.web>
</location>
 
Share this answer
 
XML
<location path="Site.css" allowOverride="true">
    <system.web>
      <authorization>
        <allow users="*" />
      </authorization>
    </system.web>
  </location>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900