FindControl on a CreateUserWizard template

26 09 2007

I wanted to be able to customise the CreateUserWizard control by adding some components onto the CreatedUser template such as a few labels, and then display the username and password in these labels.

The first thing is to ensure the code for this goes in the following event stub:

CreateUserWizard1_CreatedUser

You then need to access your labels on the template. Heres how:

Dim lbl As Label
lbl = CreateUserWizard1.CompleteStep.ContentTemplateContainer.FindControl("lblUsername")
lbl.Text = etc....

As easy as that!


Actions

Information

Leave a comment