ProTech's home page

ProTech-Online.com

Example web.config for SqlMembershipProvider users and roles.

<?xml version="1.0"?>
<!--
    Note: As an alternative to hand editing this file you can use the
    web admin tool to configure settings for your application. Use
    the Website->Asp.Net Configuration option in Visual Studio.
    A full list of settings and comments can be found in
    machine.config.comments usually located in
    \Windows\Microsoft.Net\Framework\v2.x\Config
-->
<configuration>
   <appSettings/>
   <connectionStrings/>
     <system.web>
       <authorization>
         <allow roles="admin" />
         <deny users="*" />
       </authorization>
     </system.web>
</configuration>


Copyright © 2013 ProTechs-Online.com; All rights reserved.