Author: mjta | Posted on: 9/22/2010 1:02:31 PM | Views : 474

on the third line of code I get message that "NewUserWizard" is not declared.  How can I remedy this?
Protected Sub CreateUserWizard1_CreatedUser(ByVal sender As Object, ByVal e As System.EventArgs) Handles CreateUserWizard1.CreatedUser ' Get the UserId of the just-added user Dim newUser As MembershipUser = Membership.GetUser(NewUserWizard.UserName) Dim newUserId As Guid = CType(newUser.ProviderUserKey, Guid) ' Insert a new record into UserProfiles Dim connectionString As String = ConfigurationManager.ConnectionStrings("ASPNETDBConnectionString").ConnectionString() Dim insertSql As String = "INSERT INTO UserProfiles(UserId, HomeTown, HomepageUrl," & _ "Signature) VALUES(@UserId, @HomeTown, @HomepageUrl, @Signature)" Using myConnection As New SqlConnection(connectionString) myConnection.Open() ...

Go to the complete details ...