access CreateUserWizardControl controls?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I access the fields in a CreateUserWizardControl such as the UserName
textbox etc.

I need to prepopulate some data before the administrator finishes creating a
user account.

I tried something like this:

CreateUserWizardStep cuws = CreateUserWizard1.CreateUserStep;
TextBox tbUserName = (TextBox)cuws.FindControl( "UserName" );
tbUserName.Text = "samalamadingdong";

Thanks for any suggestions!
 
Hello Dabbler,

Couldn't you do something like:

CreateUserWizard1.UserName = "samalamdingdong";

Will prepopulate the username text box with the name.
 
Thanks Brian, that works. I was trying to find controls as I do with my
forms. Unfortunately the Wizard has password field marked as read only, so I
can't insert my generated password. Guess I will have to roll my own ceate
user form.


Thanks again.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top