V
VB Programmer
I am getting this error: error BC30456: 'CreateUser' is not a member of
'Membership'.
What does that mean? Here's my code. It seems correct (no squigglies,
etc...)
' store it in db
Dim result As System.Web.Security.MembershipCreateStatus
Try
Dim newUser As MembershipUser =
Membership.CreateUser(Me.txtUsername.Text, Me.txtPassword.Text,
Me.txtEmail.Text, Me.ddlSecurityQuestion.SelectedItem.Text,
Me.txtSecurityAnswer.Text, False, result)
If newUser Is Nothing Then
Me.lblUserReject.Text = GetErrorMessage(result)
Else
Response.Redirect("ThankYouSubmitApp.aspx")
End If
Catch
Me.lblUserReject.Text = "An exception occurred creating the
user."
End Try
Thanks,
Robert
'Membership'.
What does that mean? Here's my code. It seems correct (no squigglies,
etc...)
' store it in db
Dim result As System.Web.Security.MembershipCreateStatus
Try
Dim newUser As MembershipUser =
Membership.CreateUser(Me.txtUsername.Text, Me.txtPassword.Text,
Me.txtEmail.Text, Me.ddlSecurityQuestion.SelectedItem.Text,
Me.txtSecurityAnswer.Text, False, result)
If newUser Is Nothing Then
Me.lblUserReject.Text = GetErrorMessage(result)
Else
Response.Redirect("ThankYouSubmitApp.aspx")
End If
Catch
Me.lblUserReject.Text = "An exception occurred creating the
user."
End Try
Thanks,
Robert