this is my code, im trying to fire some info into a database, as a user is created, can anybody see whats wrong with it? by the way the line of code which is underlined, is the line of code producing the error.


Protected Sub CreateUserWizard1_CreatedUser(ByVal sender As Object, ByVal e As System.EventArgs) Handles CreateUserWizard1.CreatedUser
Dim UserNameTextBox As TextBox = DirectCast(CreateUserWizard1.CreateUserStep.FindControl("UserNameTextBox"), TextBox)
Dim DataSource As SqlDataSource = DirectCast(CreateUserWizard1.CreateUserStep.FindControl("InsertExtraInfo"), SqlDataSource)

Dim User As MembershipUser = Membership.GetUser(UserNameTextBox.Text)

Dim UserGUID As Object = User.ProviderUserKey

DataSource.InsertParameters.Add("UserId", UserGUID.ToString())

DataSource.Insert()

End Sub