title: How do I add an extra field using ASP.Net membership provider?
body: <p>I have a basic app using the ASP.NET membership provider. By default, you can use a few fields such as username, password, remember me.</p>
  
  <p>How do I add to the <strong>asp.net membership provider</strong> so I can add an additional field "address" in the register section and have it save to the database?</p>
  
  <p>I currently see the following when creating a user in the account model:</p>
  
  <pre class="lang-cs prettyprint-override"><code>public MembershipCreateStatus CreateUser(string userName, string password,
     string email)
  {
     if (String.IsNullOrEmpty(userName))
     { throw new ArgumentException("Value cannot be null or empty.", "userName"); }
     if (String.IsNullOrEmpty(password))
     { throw new ArgumentException("Value cannot be null or empty.", "password"); }
     if (String.IsNullOrEmpty(email))
     { throw new ArgumentException("Value cannot be null or empty.", "email"); }
  
     MembershipCreateStatus status;
     _provider.CreateUser(userName, password, email, null, null, true,
         null, out status);
  
     return status;
  }
  </code></pre>
  
  <p>In the create user function, I also want to save the user's "address".</p>
  
  <p>In the <strong>register.aspx</strong> I added a the following:</p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;div class="editor-label"&gt;
      &lt;%: Html.LabelFor(m =&gt; m.Address) %&gt;
  &lt;/div&gt;
  &lt;div class="editor-field"&gt;
      &lt;%: Html.TextAreaFor(m =&gt; m.Address) %&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Any ideas?</p>