Posted on: 6/30/2011 10:59:28 AM | Views : 382

Having an issue with the adding a field Name to the create user wizard. I want to write the new field called name to the aspnet_Membership.Comment field.  The wizard runs correctly and the new user is created but the script is not writing to the comment field. Can anyone help. Here is the page:

<%@ page language="VB"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
Protected Sub CreateUserWizard1_CreatedUser(ByVal sender As Object, ByVal e As EventArgs)

Dim NameTextBox As TextBox = _
CType(Createuserwizard1.CreateUserStep.ContentTemplateContainer.FindControl("Name"), TextBox)
Dim userNameTextBox As TextBox = _
CType(CreateUserWizardStep1.ContentTemplateContainer.FindControl("UserName"), TextBox)


Dim user As Membership ...

Go to the complete details ...