Unique ID of CreateUserWizard Create User button

O

oozy

Hi,

I'm currently using

Page.Form.DefaultButton = ChangePassword1.FindControl("xx").UniqueID

to set my DefaultButtons in a form that has multiple wizards(each in
it's own panel). I can find the ID of every wizard I am using except
the "Create User" button of the Create User Wizard. I've tried the
ID, the name, parts of either, but I always get an error in my page
when I try to use the command above for the "Create User" button.

I know this works for other controls in the create user wizard.
Referencing the "User name" control works, as can be seen in the code
below.

If (CreateUserPanel.Visible()) Then Page.Form.DefaultFocus =
CreateUserWizard1.FindControl("CreateUserStepContainer
$UserName").UniqueID

Does anybody know how I can reference the button?

Thanks
 
C

clintonG

Turn Trace on in the page and look for the control in the control tree
hierachy. You probably need to use FindControl on another container similar
to something like this...

....FindControl("xx").FindControl("yy");

<%= Clinton Gallagher
NET csgallagher AT metromilwaukee.com
URL http://clintongallagher.metromilwaukee.com/
 
G

george

If you didn't find this out already using clintonG's suggestion...this should do it:

this.CreateUserWizard1.FindControl("StartNavigationTemplateContainerID").FindControl("StartNextButton").UniqueID;

EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
 

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

Members online

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top