473,654 Members | 3,114 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Unique ID of CreateUserWizar d Create User button

Hi,

I'm currently using

Page.Form.Defau ltButton = ChangePassword1 .FindControl("x x").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 (CreateUserPane l.Visible()) Then Page.Form.Defau ltFocus =
CreateUserWizar d1.FindControl( "CreateUserStep Container
$UserName").Uni queID

Does anybody know how I can reference the button?

Thanks

Mar 9 '07 #1
3 4924
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").FindCont rol("yy");

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

"oozy" <oo*****@gmail. comwrote in message
news:11******** **************@ p10g2000cwp.goo glegroups.com.. .
Hi,

I'm currently using

Page.Form.Defau ltButton = ChangePassword1 .FindControl("x x").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 (CreateUserPane l.Visible()) Then Page.Form.Defau ltFocus =
CreateUserWizar d1.FindControl( "CreateUserStep Container
$UserName").Uni queID

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...th is should do it:

this.CreateUser Wizard1.FindCon trol("StartNavi gationTemplateC ontainerID").Fi ndControl("Star tNextButton").U niqueID;

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
2550
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" of validators in their own validation group. Any ideas why this isn't working?
2
9099
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 anyone please help me with this? I am attaching my code piece. Thank you in advance for your help. Wing
0
1762
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 = "~/home.aspx"
2
2249
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 CreateUserWizardStep = New CreateUserWizardStep Dim DealerShipIDvalue As TextBox = myStep.ContentTemplateContainer.FindControl("_txtDealerShipID") Dim dealer As String dealer = Server.HtmlEncode(DealerShipIDvalue.Text)
0
1618
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 controller in a new forest named VSERVER00 running Windows Server 2003 R2 Standard. The second is an application server running IIS in the same domain, named VSERVER01 also running Windows Server 2003 R2 Standard. The domain is VDOMAIN.local. I have...
0
2014
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 in the form required for an e-mail address." Any ideas? --------------------------------------------------------- The CreateUserWizard contorl's code:
2
3747
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 clicks on the Create User button on the first page, validation occurs with javascript turning on a ValidationSummary, so no postback occurs. For accessibility reasons, I would like the page to be posted back so screen readers would be able to find...
0
1375
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 button & Previous button. Actually, i have added some more textboxes on the default control for taking user's personal information. The problem is that when i call the below mentioned code all textboxes for user's personal information gets cleared...
0
1440
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 alongwith Create User button & Previous button. Actually, i have added some more textboxes on the default control for taking user's personal information. The problem is that when i call the below mentioned code all textboxes for user's personal information...
0
8379
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8294
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8709
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8494
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6162
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5627
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1924
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1597
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.