J
John
Hi
I am using the membership createuser method but need to find the error when
one arise. I am using the below code;
Public Function CreateUser(ByVal Username As String, ByVal Password As
String, ByVal Email As String, ByRef ErrMsg As String) As Boolean
Try
Membership.CreateUser(Username, Password, Email)
CreateUser = True
Catch ex As MembershipCreateUserException
ErrMsg = ex.StatusCode
CreateUser = False
End Try
End Function
The problem is that as far as I can tell the ErrMsg always returns blank.
What am I doing wrong?
Thanks
Regards
I am using the membership createuser method but need to find the error when
one arise. I am using the below code;
Public Function CreateUser(ByVal Username As String, ByVal Password As
String, ByVal Email As String, ByRef ErrMsg As String) As Boolean
Try
Membership.CreateUser(Username, Password, Email)
CreateUser = True
Catch ex As MembershipCreateUserException
ErrMsg = ex.StatusCode
CreateUser = False
End Try
End Function
The problem is that as far as I can tell the ErrMsg always returns blank.
What am I doing wrong?
Thanks
Regards