title: Assigning Roles to Users in C# ASP.NET Web Forms
body: <p>I can't seem to get authorization to work in web.config for user authentication.</p>
  
  <p>I have this in web.config and I tried to do authentication using </p>
  
  <pre><code>&lt;authorization&gt;
      &lt;allow roles="Admin" /&gt;
      &lt;deny users="*" /&gt;  
    &lt;/authorization&gt;
  </code></pre>
  
  <p>and this how i get authentication</p>
  
  <pre><code>    FormsAuthentication.RedirectFromLoginPage(txtUsername.Text,false);
  </code></pre>
  
  <p>Where do I assign Admin to the user so that it is recognized in the web config?</p>