Modifying the web.config file to add username/password values : authentication « Configuration « ASP.NET Tutorial






<system.web>
   <authentication mode="Forms">
      <forms name="Wrox" loginUrl="Login.aspx" path="/">
         <credentials passwordFormat="Clear">
            <user name="userName" password="Bubbles" />
         </credentials>
      </forms>
   </authentication>
   
   <authorization>
      <deny users="?" />
   </authorization>
</system.web>








16.6.authentication
16.6.1.Denying all users through the web.config file
16.6.2.The Node
16.6.3.Allowing a single user through the web.config file
16.6.4.Specify all users with the use of the asterisk (*)
16.6.5.To allow more than one user
16.6.6.web.config file for forms-based authentication
16.6.7.Modifying the web.config file to add username/password values