I have a CreateUserWizard control. The
CreateUserWizard (within the control) step has been turned into a
template and customised, with some extra fields I have added (forename,
surname etc).
I want to store the data entered in the custom fields within the
OnCreatedUser event handler. My problem is that I'm struggling to
access my additional fields in the way I accessed them for, say, custom
validation.
I have tried using:
public void NewUserWizard_CreatedUser(object sender, EventArgs e)
{
at2LINQDataContext db = new at2LINQDataContext();
MembershipUser newUser = Membership.GetUser(RegisterUser.UserName);
Guid newUserId = (Guid)newUser.ProviderUserKey;
TextBox UserTitle = RegisterUser.CreateUserStep.ContentTemplateContainer.FindControl("UserTitle") as TextBox;
TextBox Forename = RegisterUser.CreateUserStep.ContentTemplateContainer.FindC ...
Go to the complete details ...