title: Create AND add user to sharepoint site via code
body: <p>I'm curious about the best/most efficient way to do this.</p>
  
  <p>I've already set up my sharepoint 2010 site, and it is configured to use FBA.  What i'd like to do is allow users to create their own accounts by filling out a form (the form will sit on a public sharepoint site, and filling it out creates a user in the membership database which is used for validation to enter the FBA sharepoint site).  </p>
  
  <p>I'm familiar with using the asp CreateWizard tool to build user accounts as part of a .Net web application, but I'm not sure on how to develop this as a webpart for use in a sharepoint site, as a webpart doesn't have the config file to store connection string and membership/role provider info.</p>
  
  <p>Can this user creation form be put in a webpart and deployed to other sites, or is there another/better way to add this functionality to sharepoint (allowing users to register/create their own FBA accounts for access)?</p>