title: Assigning Roles to Users When Registering
body: <p>I have a role called 'Customer', I wish to add users who register automatically to that role. At the moment I can only assign users to roles by using ASP.net Web Site Administration Tool. I'm using the default LogOn.aspx and Register.aspx files from Account folder in vb web profile.</p>
  
  <p>I have seen that other users have used:</p>
  
  <pre><code>Dim uName As String = registrationWizard.UserName.ToString   
  Roles.AddUserToRole(uName, "Customer")
  </code></pre>
  
  <p>I'm not sure exactly where this needs to go, or even if this would work?</p>
  
  <p>Thanks for any help.</p>