Is this the right declaration of findcontrol for complete step of createuserwizard1 ?
Dim UserName As TextBox = CreateUserWizard1.CreateUserStep.ContentTemplateContainer.FindControl(“Label11”)
But when i use it its shows the error object expected !
What was the problem ?
You can’t set the value of a Textbox to a generic control (especially one that is really a label). Plus you forgot the New keyword when initializing UserName. Depending on exactly what you’re trying to do, you may want to try the following…
Or