David,
The code for what you are trying to do is below, as well as in /admin/client/edit.aspx.vb around line 150:
Membership.CreateUser(email.Text, password.Text, email.Text)
'save its profile in dni_clients table
Dim prof As ProfileCommon = Profile.GetProfile(email.Text)
prof.first_name = first_name.Text
prof.last_name = last_name.Text
prof.address1 = address1.Text
prof.address2 = address2.Text
prof.city = city.Text
prof.state = state.Text
prof.postal_code = postal_code.Text
prof.telephone = telephone.Text
prof.account_number = account_number.Text
prof.notes = notes.Text
prof.company = company.Text
prof.dni_status_id = dni_status_id.SelectedValue
prof.email = email.Text
prof.alternate_email = alternate_email.Text
'save profile
prof.Save()
'add user to client role
Roles.AddUserToRole(email.Text, constants.role_client)
If you run into problems feel free to email us directly at support@dotnetinvoice.com.
---
Rob
DotNetInvoice Support