473,385 Members | 1,546 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Unique ID of CreateUserWizard Create User button

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("CreateUserStepConta iner
$UserName").UniqueID

Does anybody know how I can reference the button?

Thanks

Mar 9 '07 #1
3 4917
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/

"oozy" <oo*****@gmail.comwrote in message
news:11**********************@p10g2000cwp.googlegr oups.com...
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("CreateUserStepConta iner
$UserName").UniqueID

Does anybody know how I can reference the button?

Thanks

Mar 9 '07 #2
If you didn't find this out already using clintonG's suggestion...this should do it:

this.CreateUserWizard1.FindControl("StartNavigatio nTemplateContainerID").FindControl("StartNextButto n").UniqueID;

EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
Mar 18 '07 #3

More see here!

http://www.flash50.com/index.php
Mar 18 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: VB Programmer | last post by:
I have several required field validators on each step of my CreateUserWizard. When I click Next it goes to the next step, even though the user hasn't typed anything in. I placed each "page"...
2
by: winnie_us99 | last post by:
Hi All, I am trying to do validation on my text field before going to the next page to create a user. It doesn't look like the next button will fire any validation. Am I missing something? Can...
0
by: Babbage | last post by:
a login page login.aspx from there you can go to createaccount.aspx Ive got a createuserwizard on that create account page. It includes the following properties continuedestinationpageurl...
2
by: Learner | last post by:
Hello, I have defined another textbox control in the CreateUserWizard control and this is how I am trying to get the value of it in the code behind page is below im myStep As...
0
by: Nehpets | last post by:
I'm trying to setup a web site that uses active directory for user authentication under asp.net 2.0. For testing, I have separately installed two virtual servers. The first is a domain...
0
by: Avi | last post by:
A CreateUserWizard contorl receives new user details, adds the user to the database, tries to send a confirmation mail message and stops with a "System.FormatException: The specified string is not...
2
by: hardieca | last post by:
Hi! I have a CreateUserWizard control with the usual suspects of validators. As you're probably aware, each validator is associated with one of CreateUserWizard's child controls. When a user...
0
by: asumal | last post by:
Hello I am new to ASP.NET. I am using CreateUserWizard control to register & create a user. I am using Membership API. I have a Cancel button on the CreateUserWizard step 2 alongwith Create User ...
0
by: asumal | last post by:
Hello I am new to ASP.NET. I am using CreateUserWizard control to register & create a user. I am using Membership API. I have a Cancel button on the second step of CreateUserWizard control...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.