title: User roles from custom database in ASP.NET
body: <p>I'm creating an app with ASP.NET WebForms. I have custom database with users table. It contains name and role. How can I add roles from DB to website? I want to use something like this:</p>
  
  <pre><code>&lt;location path="path"&gt; 
     &lt;system.web&gt;
        &lt;authorization&gt; 
           &lt;allow roles="role"/&gt;
           &lt;deny users="*"/&gt;
        &lt;/authorization&gt;
     &lt;/system.web&gt;
  &lt;/location&gt;
  </code></pre>
  
  <p>where <code>role</code> should be imported.</p>
  
  <p>Thank you!</p>