ASP.NET Tutorial/Configuration/authorization

Материал из .Net Framework эксперт
Перейти к: навигация, поиск

Applying authorization requirements to a single file

<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>