Thanks.
I followed that example exactly. I still get a build error, 'CreateUser' is
not a member of 'Membership'...
------ Build started: Project: 1320Stompers_deploy, Configuration: Debug Any
CPU ------
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspn et_compiler.exe -v
/1320Stompers -p C:\work-related\Websites\1320Stompers -u -f -d
C:\work-related\Websites\1320Stompers_deploy\1320Stompers_ deploy\Debug\
C:\work-related\Websites\1320Stompers\SubmitProfile.aspx.v b(45): error
BC30456: 'CreateUser' is not a member of 'Membership'.
Done building project "1320Stompers_deploy.wdproj" -- FAILED.
========== Build: 0 succeeded or up-to-date, 2 failed, 0 skipped ==========
Here's my code:
Dim status As MembershipCreateStatus
Try
Dim newUser As MembershipUser =
Membership.CreateUser(Me.txtUsername.Text, Me.txtPassword.Text, _
Me.txtEmail.Text,
Me.txtSecurityAnswer.Text, _
Me.txtSecurityAnswer.Text,
False, status)
If newUser Is Nothing Then
Me.lblUserReject.Text = GetErrorMessage(status)
Else
Response.Redirect("ThankYouSubmitApp.aspx")
End If
Catch
Me.lblUserReject.Text = "An exception occurred creating the
user."
End Try
I didn't like this line, I guess:
Dim newUser As MembershipUser =
Membership.CreateUser(Me.txtUsername.Text, Me.txtPassword.Text, _
I restarted VS2005 with the same result.
Any ideas?
"Henrique Mello" <hm****@gmail.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
Well, hope this helps
http://msdn2.microsoft.com/en-us/lib...atestatus.aspx