Applying authorization requirements to a single file : authorization « Configuration « ASP.NET Tutorial






<configuration>
    <system.web>
      <authentication mode="None" />
   </system.web>
    
   <location path="AdminPage.aspx">
      <system.web>
         <authentication mode="Windows" />
         <authorization>
            <allow users="DomainName\YourName" />
            <deny users="*" />
         </authorization>
      </system.web>
   </location>
</configuration>








16.7.authorization
16.7.1.Applying authorization requirements to a single file