-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
CreateUserWizard.xml
4875 lines (4245 loc) · 341 KB
/
CreateUserWizard.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<Type Name="CreateUserWizard" FullName="System.Web.UI.WebControls.CreateUserWizard">
<TypeSignature Language="C#" Value="public class CreateUserWizard : System.Web.UI.WebControls.Wizard" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit CreateUserWizard extends System.Web.UI.WebControls.Wizard" />
<TypeSignature Language="DocId" Value="T:System.Web.UI.WebControls.CreateUserWizard" />
<TypeSignature Language="VB.NET" Value="Public Class CreateUserWizard
Inherits Wizard" />
<TypeSignature Language="F#" Value="type CreateUserWizard = class
 inherit Wizard" />
<TypeSignature Language="C++ CLI" Value="public ref class CreateUserWizard : System::Web::UI::WebControls::Wizard" />
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Web.UI.WebControls.Wizard</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.Bindable(false)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.Bindable(false)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.DefaultEvent("CreatedUser")]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.DefaultEvent("CreatedUser")>]</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="netframework-2.0;netframework-3.0;netframework-3.5">
<AttributeName Language="C#">[System.ComponentModel.Designer("System.Web.UI.Design.WebControls.CreateUserWizardDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.Designer("System.Web.UI.Design.WebControls.CreateUserWizardDesigner, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Web.UI.ToolboxData("<{0}:CreateUserWizard runat="server"> <WizardSteps> <asp:CreateUserWizardStep runat="server"/> <asp:CompleteWizardStep runat="server"/> </WizardSteps> </{0}:CreateUserWizard>")]</AttributeName>
<AttributeName Language="F#">[<System.Web.UI.ToolboxData("<{0}:CreateUserWizard runat="server"> <WizardSteps> <asp:CreateUserWizardStep runat="server"/> <asp:CompleteWizardStep runat="server"/> </WizardSteps> </{0}:CreateUserWizard>")>]</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1">
<AttributeName Language="C#">[System.ComponentModel.Designer("System.Web.UI.Design.WebControls.CreateUserWizardDesigner, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.Designer("System.Web.UI.Design.WebControls.CreateUserWizardDesigner, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")>]</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Provides a user interface for creating new Web site user accounts.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
In this topic:
- [Introduction](#Introduction)
- [Creating a User](#creating_a_user)
- [Styles and Templates](#styles_and_templates)
- [Validation Grouping](#validation_grouping)
- [Formatting Using Layout Templates](#formatting_using_layout_templates)
- [Accessibility](#Accessibility)
- [Declarative Syntax](#DeclarativeSyntax)
<a name="Introduction"></a>
## Introduction
The <xref:System.Web.UI.WebControls.CreateUserWizard> control provides the user interface for the <xref:System.Web.Security.MembershipProvider> object that communicates with your Web site's user data store to create new user accounts in the data store. The <xref:System.Web.UI.WebControls.CreateUserWizard> relies on the <xref:System.Web.Security.MembershipProvider> to create the user and disable them if necessary.
> [!NOTE]
> If you are not familiar with ASP.NET login controls, you might find it helpful to read [ASP.NET Login Controls Overview](https://learn.microsoft.com/previous-versions/aspnet/ms178329(v=vs.100)) before continuing. For a list of other topics related to login controls and membership, see [Managing Users by Using Membership](https://learn.microsoft.com/previous-versions/aspnet/tw292whz(v=vs.100)).
By default, the <xref:System.Web.UI.WebControls.CreateUserWizard> control will accept a user name and password from the Web site visitor. Based on the requirements of the site's <xref:System.Web.Security.MembershipProvider> object, the <xref:System.Web.UI.WebControls.CreateUserWizard> control will optionally accept an email address, represented by the <xref:System.Web.UI.WebControls.CreateUserWizard.Email%2A> property, and a password recovery confirmation question and answer, represented by <xref:System.Web.UI.WebControls.CreateUserWizard.Question%2A> and <xref:System.Web.UI.WebControls.CreateUserWizard.Answer%2A>. For a table showing all required and optional controls for <xref:System.Web.UI.WebControls.CreateUserWizard>, see <xref:System.Web.UI.WebControls.CreateUserWizard.CreateUserStep%2A>.
> [!IMPORTANT]
> If <xref:System.Web.UI.WebControls.CreateUserWizard.AutoGeneratePassword%2A> is set to `true` and the <xref:System.Web.Security.Membership.PasswordStrengthRegularExpression%2A> property is set in the application's Web.config file, you could potentially generate a password that does not pass the regular expression strength test. In this case, creating a user raises an error that indicates an invalid password.
<a name="creating_a_user"></a>
## Creating a User
When a user is created with the <xref:System.Web.UI.WebControls.CreateUserWizard>, the control interacts with the current <xref:System.Web.UI.WebControls.CreateUserWizard.MembershipProvider%2A> to accomplish the following tasks in order.
1. Create a password if <xref:System.Web.UI.WebControls.CreateUserWizard.AutoGeneratePassword%2A> is set to `true`.
2. Create the user in the data store that the <xref:System.Web.UI.WebControls.CreateUserWizard.MembershipProvider%2A> represents.
3. Disable the user in the store if the <xref:System.Web.UI.WebControls.CreateUserWizard.DisableCreatedUser%2A> property is set to `true`.
You can extend the <xref:System.Web.UI.WebControls.CreateUserWizard> control to accept additional information by adding additional fields, or by adding additional steps before or after the provided templates in the <xref:System.Web.UI.WebControls.CreateUserWizard.CreateUserStep%2A> and <xref:System.Web.UI.WebControls.CreateUserWizard.CompleteStep%2A> properties.
> [!NOTE]
> The <xref:System.Web.UI.WebControls.CreateUserWizardStep> step is the first step within the <xref:System.Web.UI.WebControls.CreateUserWizard> control, and is a required step. By default, the <xref:System.Web.UI.WebControls.CreateUserWizardStep.AllowReturn%2A> property is set to `false` to keep the user from returning to the <xref:System.Web.UI.WebControls.CreateUserWizardStep> step and accidentally attempting to create another user account with the same credentials. If <xref:System.Web.UI.Control.EnableViewState%2A> is set to `false`, the <xref:System.Web.UI.WebControls.CreateUserWizardStep.AllowReturn%2A> property is not maintained in view state and you must include logic in your application to maintain the <xref:System.Web.UI.WebControls.CreateUserWizardStep.AllowReturn%2A> value.
<xref:System.Web.UI.WebControls.CreateUserWizard> control properties represented by text boxes, such as <xref:System.Web.UI.WebControls.CreateUserWizard.UserName%2A>, are accessible during all phases of the page life cycle. The control will pick up any changes made by the end user by means of the <xref:System.Web.UI.WebControls.TextBox.TextChanged> event raised by the text boxes.
The <xref:System.Web.UI.WebControls.CreateUserWizard> control can optionally send email messages to new users if you have configured an SMTP mail server to send email. For more information, see the <xref:System.Web.UI.WebControls.CreateUserWizard.MailDefinition%2A> property.
> [!NOTE]
> The <xref:System.Web.UI.WebControls.CreateUserWizard> control uses Internet email services to send login information to users. There are inherent security risks with sending passwords in email. You should determine whether these security risks are acceptable to your site.
<a name="styles_and_templates"></a>
## Styles and Templates
When the <xref:System.Web.UI.WebControls.CreateUserWizard> control is not customized with templates, the <xref:System.Web.UI.WebControls.WebControl.AccessKey%2A> property of the <xref:System.Web.UI.WebControls.CreateUserWizard> control applies to the first text box in the control and the <xref:System.Web.UI.WebControls.WebControl.TabIndex%2A> property, which is applied to all text boxes of the control. If the <xref:System.Web.UI.WebControls.CreateUserWizard> control is customized with templates, then the <xref:System.Web.UI.WebControls.WebControl.AccessKey%2A> property and the <xref:System.Web.UI.WebControls.WebControl.TabIndex%2A> property are ignored. In this case, directly set the <xref:System.Web.UI.WebControls.WebControl.AccessKey%2A> property and the <xref:System.Web.UI.WebControls.WebControl.TabIndex%2A> property of each template child control.
<xref:System.Web.UI.WebControls.CreateUserWizard> control properties represented by text boxes, such as <xref:System.Web.UI.WebControls.CreateUserWizard.UserName%2A> and <xref:System.Web.UI.WebControls.CreateUserWizard.Password%2A>, are accessible during all phases of the page life cycle. The control will pick up any changes made by the end user by means of the <xref:System.Web.UI.WebControls.TextBox.TextChanged> event raised by the text boxes.
> [!NOTE]
> Setting the <xref:System.Web.UI.WebControls.CreateUserWizard.AutoGeneratePassword%2A>, <xref:System.Web.UI.WebControls.CreateUserWizard.MembershipProvider%2A>, or <xref:System.Web.UI.WebControls.CreateUserWizard.RequireEmail%2A> property recreates the child controls of the <xref:System.Web.UI.WebControls.CreateUserWizard> control, and their control state is lost in the process. To avoid this situation, explicitly maintain the control state of the <xref:System.Web.UI.WebControls.CreateUserWizard> control's child controls, or avoid putting controls inside of templates.
The following table lists the <xref:System.Web.UI.WebControls.CreateUserWizard> control style properties and explains which UI element each style property affects. For a list of which properties each style applies to, see the documentation for the individual style properties.
|Style property|UI element affected|
|--------------------|-------------------------|
|<xref:System.Web.UI.WebControls.CreateUserWizard.ContinueButtonStyle%2A>|**Continue** button.|
|<xref:System.Web.UI.WebControls.CreateUserWizard.CreateUserButtonStyle%2A>|**Create User** button.|
|<xref:System.Web.UI.WebControls.CreateUserWizard.HyperLinkStyle%2A>|Links to other pages.|
|<xref:System.Web.UI.WebControls.CreateUserWizard.InstructionTextStyle%2A>|Instructional text on the page that tells users how to use the control.|
|<xref:System.Web.UI.WebControls.CreateUserWizard.LabelStyle%2A>|Labels for all input fields, such as text boxes.|
|<xref:System.Web.UI.WebControls.CreateUserWizard.TextBoxStyle%2A>|Text entry input fields.|
|<xref:System.Web.UI.WebControls.CreateUserWizard.TitleTextStyle%2A>|Title text for each view.|
|<xref:System.Web.UI.WebControls.CreateUserWizard.CompleteSuccessTextStyle%2A>|Text displayed to the user when the password recovery or reset attempt is successful.|
|<xref:System.Web.UI.WebControls.CreateUserWizard.ErrorMessageStyle%2A>|Error messages when the membership provider fails to create a new user account.|
|<xref:System.Web.UI.WebControls.CreateUserWizard.PasswordHintStyle%2A>|The text that describes password requirements.|
|<xref:System.Web.UI.WebControls.CreateUserWizard.ValidatorTextStyle%2A>|Error messages associated with validation.|
<a name="validation_grouping"></a>
## Validation Grouping
The <xref:System.Web.UI.WebControls.CreateUserWizard> control uses a validation group so that other fields on the same page as the <xref:System.Web.UI.WebControls.CreateUserWizard> control can be validated separately. By default, the <xref:System.Web.UI.Control.ID%2A> property of the <xref:System.Web.UI.WebControls.CreateUserWizard> control is used as the name of the validation group. For example, a <xref:System.Web.UI.WebControls.CreateUserWizard> control with the ID "CreateUserWizard1" will use a validation group name of "CreateUserWizard1". If you want to set the validation group that the <xref:System.Web.UI.WebControls.CreateUserWizard> control is part of, you must template the control and change the validation group name.
Note that the <xref:System.Web.UI.WebControls.CreateUserWizard> class inherits from the <xref:System.Web.UI.WebControls.Wizard> class, which does not support special Microsoft Internet Explorer rendering for non-standard or quirks mode. The <xref:System.Web.UI.WebControls.CreateUserWizard> does not attempt to optimize rendering for non-standard Internet Explorer mode. To get the best Internet Explorer rendering using the <xref:System.Web.UI.WebControls.CreateUserWizard> control, use the XHTML doc type, which is added by default in Visual Web Developer and Visual Studio.
<a name="formatting_using_layout_templates"></a>
## Formatting Using Layout Templates
The <xref:System.Web.UI.WebControls.CreateUserWizard> control lets you specify the layout of the control without requiring you to use an HTML `table` element. Instead, you can use a `LayoutTemplate` element to specify the layout. In the layout template, you create placeholder controls to indicate where items should be dynamically inserted into the control. (This is similar to how the template model for the <xref:System.Web.UI.WebControls.ListView> control works.) For more information, see the <xref:System.Web.UI.WebControls.Wizard.LayoutTemplate%2A?displayProperty=nameWithType> property.
<a name="Accessibility"></a>
## Accessibility
For information about how to configure this control so that it generates markup that conforms to accessibility standards, see [Accessibility in Visual Studio and ASP.NET](https://learn.microsoft.com/previous-versions/ms228004(v=vs.140)) and [ASP.NET Controls and Accessibility](https://learn.microsoft.com/previous-versions/ms227996(v=vs.140)).
<a name="DeclarativeSyntax"></a>
## Declarative Syntax
```
<asp:CreateUserWizard
AccessKey="string"
ActiveStepIndex="integer"
Answer="string"
AnswerLabelText="string"
AnswerRequiredErrorMessage="string"
AutoGeneratePassword="True|False"
BackColor="color name|#dddddd"
BorderColor="color name|#dddddd"
BorderStyle="NotSet|None|Dotted|Dashed|Solid|Double|Groove|Ridge|
Inset|Outset"
BorderWidth="size"
CancelButtonImageUrl="uri"
CancelButtonText="string"
CancelButtonType="Button|Image|Link"
CancelDestinationPageUrl="uri"
CellPadding="integer"
CellSpacing="integer"
CompleteSuccessText="string"
ConfirmPasswordCompareErrorMessage="string"
ConfirmPasswordLabelText="string"
ConfirmPasswordRequiredErrorMessage="string"
ContinueButtonImageUrl="uri"
ContinueButtonText="string"
ContinueButtonType="Button|Image|Link"
ContinueDestinationPageUrl="uri"
CreateUserButtonImageUrl="uri"
CreateUserButtonText="string"
CreateUserButtonType="Button|Image|Link"
CssClass="string"
DisableCreatedUser="True|False"
DisplayCancelButton="True|False"
DisplaySideBar="True|False"
DuplicateEmailErrorMessage="string"
DuplicateUserNameErrorMessage="string"
EditProfileIconUrl="uri"
EditProfileText="string"
EditProfileUrl="uri"
Email="string"
EmailLabelText="string"
EmailRegularExpression="string"
EmailRegularExpressionErrorMessage="string"
EmailRequiredErrorMessage="string"
Enabled="True|False"
EnableTheming="True|False"
EnableViewState="True|False"
FinishCompleteButtonImageUrl="uri"
FinishCompleteButtonText="string"
FinishCompleteButtonType="Button|Image|Link"
FinishDestinationPageUrl="uri"
FinishPreviousButtonImageUrl="uri"
FinishPreviousButtonText="string"
FinishPreviousButtonType="Button|Image|Link"
Font-Bold="True|False"
Font-Italic="True|False"
Font-Names="string"
Font-Overline="True|False"
Font-Size="string|Smaller|Larger|XX-Small|X-Small|Small|Medium|
Large|X-Large|XX-Large"
Font-Strikeout="True|False"
Font-Underline="True|False"
ForeColor="color name|#dddddd"
HeaderText="string"
Height="size"
HelpPageIconUrl="uri"
HelpPageText="string"
HelpPageUrl="uri"
ID="string"
InstructionText="string"
InvalidAnswerErrorMessage="string"
InvalidEmailErrorMessage="string"
InvalidPasswordErrorMessage="string"
InvalidQuestionErrorMessage="string"
LoginCreatedUser="True|False"
MailDefinition-BodyFileName="uri"
MailDefinition-CC="string"
MailDefinition-From="string"
MailDefinition-IsBodyHtml="True|False"
MailDefinition-Priority="Normal|Low|High"
MailDefinition-Subject="string"
MembershipProvider="string"
OnActiveStepChanged="ActiveStepChanged event handler"
OnCancelButtonClick="CancelButtonClick event handler"
OnContinueButtonClick="ContinueButtonClick event handler"
OnCreatedUser="CreatedUser event handler"
OnCreateUserError="CreateUserError event handler"
OnCreatingUser="CreatingUser event handler"
OnDataBinding="DataBinding event handler"
OnDisposed="Disposed event handler"
OnFinishButtonClick="FinishButtonClick event handler"
OnInit="Init event handler"
OnLoad="Load event handler"
OnNextButtonClick="NextButtonClick event handler"
OnPreRender="PreRender event handler"
OnPreviousButtonClick="PreviousButtonClick event handler"
OnSendingMail="SendingMail event handler"
OnSendMailError="SendMailError event handler"
OnSideBarButtonClick="SideBarButtonClick event handler"
OnUnload="Unload event handler"
PasswordHintText="string"
PasswordLabelText="string"
PasswordRegularExpression="string"
PasswordRegularExpressionErrorMessage="string"
PasswordRequiredErrorMessage="string"
Question="string"
QuestionLabelText="string"
QuestionRequiredErrorMessage="string"
RequireEmail="True|False"
runat="server"
SkinID="string"
SkipLinkText="string"
StartNextButtonImageUrl="uri"
StartNextButtonText="string"
StartNextButtonType="Button|Image|Link"
StepNextButtonImageUrl="uri"
StepNextButtonText="string"
StepNextButtonType="Button|Image|Link"
StepPreviousButtonImageUrl="uri"
StepPreviousButtonText="string"
StepPreviousButtonType="Button|Image|Link"
Style="string"
TabIndex="integer"
ToolTip="string"
UnknownErrorMessage="string"
UserName="string"
UserNameLabelText="string"
UserNameRequiredErrorMessage="string"
Visible="True|False"
Width="size"
>
<CancelButtonStyle/>
<CompleteSuccessTextStyle/>
<ContinueButtonStyle/>
<CreateUserButtonStyle/>
<ErrorMessageStyle/>
<FinishCompleteButtonStyle/>
<FinishNavigationTemplate>
<!-- child controls -->
</FinishNavigationTemplate>
<FinishPreviousButtonStyle/>
<HeaderStyle/>
<HeaderTemplate>
<!-- child controls -->
</HeaderTemplate>
<HyperLinkStyle/>
<InstructionTextStyle/>
<LabelStyle/>
<MailDefinition
BodyFileName="uri"
CC="string"
From="string"
IsBodyHtml="True|False"
Priority="Normal|Low|High"
Subject="string"
>
<EmbeddedObjects>
<asp:EmbeddedMailObject
Name="string"
Path="uri"
/>
</EmbeddedObjects>
</MailDefinition>
<NavigationButtonStyle/>
<NavigationStyle/>
<PasswordHintStyle/>
<SideBarButtonStyle/>
<SideBarStyle/>
<SideBarTemplate>
<!-- child controls -->
</SideBarTemplate>
<StartNavigationTemplate>
<!-- child controls -->
</StartNavigationTemplate>
<StartNextButtonStyle/>
<StepNavigationTemplate>
<!-- child controls -->
</StepNavigationTemplate>
<StepNextButtonStyle/>
<StepPreviousButtonStyle/>
<StepStyle/>
<TextBoxStyle/>
<TitleTextStyle/>
<ValidatorTextStyle/>
<WizardSteps>
<asp:TemplatedWizardStep
AllowReturn="True|False"
ContentTemplateContainer="string"
EnableTheming="True|False"
EnableViewState="True|False"
ID="string"
OnActivate="Activate event handler"
OnDataBinding="DataBinding event handler"
OnDeactivate="Deactivate event handler"
OnDisposed="Disposed event handler"
OnInit="Init event handler"
OnLoad="Load event handler"
OnPreRender="PreRender event handler"
OnUnload="Unload event handler"
runat="server"
SkinID="string"
StepType="Auto|Complete|Finish|Start|Step"
Title="string"
Visible="True|False"
>
<ContentTemplate>
<!-- child controls -->
</ContentTemplate>
<CustomNavigationTemplate>
<!-- child controls -->
</CustomNavigationTemplate>
</asp:TemplatedWizardStep>
<asp:WizardStep
AllowReturn="True|False"
EnableTheming="True|False"
EnableViewState="True|False"
ID="string"
OnActivate="Activate event handler"
OnDataBinding="DataBinding event handler"
OnDeactivate="Deactivate event handler"
OnDisposed="Disposed event handler"
OnInit="Init event handler"
OnLoad="Load event handler"
OnPreRender="PreRender event handler"
OnUnload="Unload event handler"
runat="server"
SkinID="string"
StepType="Auto|Complete|Finish|Start|Step"
Title="string"
Visible="True|False"
/>
</WizardSteps>
</asp:CreateUserWizard>
```
## Examples
The first code example shows how to use the <xref:System.Web.UI.WebControls.CreateUserWizard> control in its basic form. This page will create a new Web site user account with the site's default <xref:System.Web.Security.MembershipProvider> object.
:::code language="aspx-csharp" source="~/snippets/csharp/VS_Snippets_WebNet/CreateUserWizardBasic/CS/createuserwizardbasiccs.aspx" id="Snippet1":::
:::code language="aspx-vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/CreateUserWizardBasic/VB/createuserwizardbasicvb.aspx" id="Snippet1":::
The second code example shows how to use the <xref:System.Web.UI.WebControls.CreateUserWizard> control with the default templates.
> [!IMPORTANT]
> This example has a text box that accepts user input, which is a potential security threat. By default, ASP.NET Web pages validate that user input does not include script or HTML elements. For more information, see [Script Exploits Overview](https://learn.microsoft.com/previous-versions/aspnet/w1sw53ds(v=vs.100)).
:::code language="aspx-csharp" source="~/snippets/csharp/VS_Snippets_WebNet/CreateUserWizardFullTemplate/CS/createuserwizardfulltemplatecs.aspx" id="Snippet1":::
:::code language="aspx-vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/CreateUserWizardFullTemplate/VB/createuserwizardfulltemplatevb.aspx" id="Snippet1":::
The third code example adds an additional step to the <xref:System.Web.UI.WebControls.CreateUserWizard> control and uses the <xref:System.Web.UI.WebControls.CreateUserWizard.CreatedUser> event to store the user's first and last name in personalization properties. The code example requires the following entries in the Web.config file.
`<configuration>`
`<system.web>`
`<profile>`
`<properties>`
`<add name="userName" />`
`</properties>`
`</profile>`
`</system.web>`
`</configuration>`
> [!IMPORTANT]
> This example has a text box that accepts user input, which is a potential security threat. By default, ASP.NET Web pages validate that user input does not include script or HTML elements. For more information, see [Script Exploits Overview](https://learn.microsoft.com/previous-versions/aspnet/w1sw53ds(v=vs.100)).
:::code language="aspx-csharp" source="~/snippets/csharp/VS_Snippets_WebNet/CreateUserWizardCreatedUser/CS/createuserwizardcreatedusercs.aspx" id="Snippet1":::
:::code language="aspx-vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/CreateUserWizardCreatedUser/VB/createuserwizardcreateduservb.aspx" id="Snippet1":::
]]></format>
</remarks>
<altmember cref="T:System.Web.UI.WebControls.Wizard" />
<altmember cref="T:System.Web.UI.WebControls.CreateUserWizardStep" />
<altmember cref="T:System.Web.UI.WebControls.WizardStep" />
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/ms178329(v=vs.100)">ASP.NET Login Controls Overview</related>
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/ms178346(v=vs.100)">Securing Login Controls</related>
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/fs0za4w6(v=vs.100)">Wizard Web Server Control Overview</related>
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/tw292whz(v=vs.100)">Managing Users By Using Membership</related>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public CreateUserWizard ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.UI.WebControls.CreateUserWizard.#ctor" />
<MemberSignature Language="VB.NET" Value="Public Sub New ()" />
<MemberSignature Language="C++ CLI" Value="public:
 CreateUserWizard();" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters />
<Docs>
<summary>Initializes a new instance of the <see cref="T:System.Web.UI.WebControls.CreateUserWizard" /> class.</summary>
<remarks>To be added.</remarks>
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/ms178329(v=vs.100)">Login ASP.NET Controls</related>
</Docs>
</Member>
<Member MemberName="ActiveStepIndex">
<MemberSignature Language="C#" Value="public override int ActiveStepIndex { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance int32 ActiveStepIndex" />
<MemberSignature Language="DocId" Value="P:System.Web.UI.WebControls.CreateUserWizard.ActiveStepIndex" />
<MemberSignature Language="VB.NET" Value="Public Overrides Property ActiveStepIndex As Integer" />
<MemberSignature Language="F#" Value="member this.ActiveStepIndex : int with get, set" Usage="System.Web.UI.WebControls.CreateUserWizard.ActiveStepIndex" />
<MemberSignature Language="C++ CLI" Value="public:
 virtual property int ActiveStepIndex { int get(); void set(int value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.DefaultValue(0)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.DefaultValue(0)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the step that is currently displayed to the user.</summary>
<value>The index of the step that is currently displayed to the user.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Web.UI.WebControls.CreateUserWizard.ActiveStepIndex%2A> property provides the zero-based index of the step that is currently displayed in the <xref:System.Web.UI.WebControls.CreateUserWizard> control. You can programmatically set the <xref:System.Web.UI.WebControls.CreateUserWizard.ActiveStepIndex%2A> property to dynamically display a step to the user.
]]></format>
</remarks>
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/ms178329(v=vs.100)">Login ASP.NET Controls</related>
</Docs>
</Member>
<Member MemberName="Answer">
<MemberSignature Language="C#" Value="public virtual string Answer { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance string Answer" />
<MemberSignature Language="DocId" Value="P:System.Web.UI.WebControls.CreateUserWizard.Answer" />
<MemberSignature Language="VB.NET" Value="Public Overridable Property Answer As String" />
<MemberSignature Language="F#" Value="member this.Answer : string with get, set" Usage="System.Web.UI.WebControls.CreateUserWizard.Answer" />
<MemberSignature Language="C++ CLI" Value="public:
 virtual property System::String ^ Answer { System::String ^ get(); void set(System::String ^ value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.DefaultValue("")]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.DefaultValue("")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.Localizable(true)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.Localizable(true)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Web.UI.Themeable(false)]</AttributeName>
<AttributeName Language="F#">[<System.Web.UI.Themeable(false)>]</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[set: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<set: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the end user's answer to the password recovery confirmation question.</summary>
<value>The end user's answer to the password recovery confirmation question. The default value is an empty string ("").</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The membership provider specified in the <xref:System.Web.UI.WebControls.CreateUserWizard.MembershipProvider%2A> property will determine whether the question and answer text boxes are displayed at run time.
If an answer is required by the membership provider specified in the <xref:System.Web.UI.WebControls.CreateUserWizard.MembershipProvider%2A> property, then the answer text box will appear on the <xref:System.Web.UI.WebControls.CreateUserWizard> control. Each text box displayed on the <xref:System.Web.UI.WebControls.CreateUserWizard> control has a <xref:System.Web.UI.WebControls.RequiredFieldValidator> object associated with it.
This property cannot be set by themes or style sheet themes. For more information, see <xref:System.Web.UI.ThemeableAttribute> and [ASP.NET Themes and Skins](https://learn.microsoft.com/previous-versions/aspnet/ykzx33wh(v=vs.100)).
The value of this property, when set, can be saved automatically to a resource file by using a designer tool. For more information, see <xref:System.ComponentModel.LocalizableAttribute> and [Globalization and Localization](https://learn.microsoft.com/previous-versions/aspnet/c6zyy3s9(v=vs.100)).
## Examples
The following code example modifies the email message in the <xref:System.Web.UI.WebControls.CreateUserWizard.SendingMail> event to include the user's password recovery confirmation answer in the message that is sent to new users.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/CreateUserWizardOnSendingMail/CS/CustomCreateUserWizard.cs" id="Snippet2":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/CreateUserWizardOnSendingMail/VB/CustomCreateUserWizard.vb" id="Snippet2":::
The following code example demonstrates a Web page that uses the `CustomCreateUserWizard`.
:::code language="aspx-csharp" source="~/snippets/csharp/VS_Snippets_WebNet/CreateUserWizardOnSendingMail/CS/createuserwizardonsendingmailcs.aspx" id="Snippet1":::
:::code language="aspx-vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/CreateUserWizardOnSendingMail/VB/createuserwizardonsendingmailvb.aspx" id="Snippet1":::
]]></format>
</remarks>
<altmember cref="P:System.Web.UI.WebControls.CreateUserWizard.Question" />
<altmember cref="P:System.Web.UI.WebControls.CreateUserWizard.AnswerLabelText" />
<altmember cref="P:System.Web.UI.WebControls.CreateUserWizard.AnswerRequiredErrorMessage" />
<altmember cref="E:System.Web.UI.WebControls.CreateUserWizard.SendingMail" />
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/ms178329(v=vs.100)">Login ASP.NET Controls</related>
</Docs>
</Member>
<Member MemberName="AnswerLabelText">
<MemberSignature Language="C#" Value="public virtual string AnswerLabelText { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance string AnswerLabelText" />
<MemberSignature Language="DocId" Value="P:System.Web.UI.WebControls.CreateUserWizard.AnswerLabelText" />
<MemberSignature Language="VB.NET" Value="Public Overridable Property AnswerLabelText As String" />
<MemberSignature Language="F#" Value="member this.AnswerLabelText : string with get, set" Usage="System.Web.UI.WebControls.CreateUserWizard.AnswerLabelText" />
<MemberSignature Language="C++ CLI" Value="public:
 virtual property System::String ^ AnswerLabelText { System::String ^ get(); void set(System::String ^ value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.Localizable(true)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.Localizable(true)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the text of the label that identifies the password confirmation answer text box.</summary>
<value>The label text that identifies the password confirmation answer text box. The default value is "Security Answer:". The default text for the control is localized based on the server's current locale.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The value of this property, when set, can be saved automatically to a resource file by using a designer tool. For more information, see <xref:System.ComponentModel.LocalizableAttribute> and [Globalization and Localization](https://learn.microsoft.com/previous-versions/aspnet/c6zyy3s9(v=vs.100)).
]]></format>
</remarks>
<altmember cref="P:System.Web.UI.WebControls.CreateUserWizard.Answer" />
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/ms178329(v=vs.100)">Login ASP.NET Controls</related>
</Docs>
</Member>
<Member MemberName="AnswerRequiredErrorMessage">
<MemberSignature Language="C#" Value="public virtual string AnswerRequiredErrorMessage { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance string AnswerRequiredErrorMessage" />
<MemberSignature Language="DocId" Value="P:System.Web.UI.WebControls.CreateUserWizard.AnswerRequiredErrorMessage" />
<MemberSignature Language="VB.NET" Value="Public Overridable Property AnswerRequiredErrorMessage As String" />
<MemberSignature Language="F#" Value="member this.AnswerRequiredErrorMessage : string with get, set" Usage="System.Web.UI.WebControls.CreateUserWizard.AnswerRequiredErrorMessage" />
<MemberSignature Language="C++ CLI" Value="public:
 virtual property System::String ^ AnswerRequiredErrorMessage { System::String ^ get(); void set(System::String ^ value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.Localizable(true)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.Localizable(true)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the error message shown when the user does not enter an answer to the password confirmation question.</summary>
<value>The error message shown when the user does not enter an answer to the password confirmation question. The default value is "Security answer is required." The default text for the control is localized based on the server's current locale.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The value of this property, when set, can be saved automatically to a resource file by using a designer tool. For more information, see <xref:System.ComponentModel.LocalizableAttribute> and [Globalization and Localization](https://learn.microsoft.com/previous-versions/aspnet/c6zyy3s9(v=vs.100)).
]]></format>
</remarks>
<altmember cref="P:System.Web.UI.WebControls.CreateUserWizard.Answer" />
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/ms178329(v=vs.100)">Login ASP.NET Controls</related>
</Docs>
</Member>
<Member MemberName="AutoGeneratePassword">
<MemberSignature Language="C#" Value="public virtual bool AutoGeneratePassword { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool AutoGeneratePassword" />
<MemberSignature Language="DocId" Value="P:System.Web.UI.WebControls.CreateUserWizard.AutoGeneratePassword" />
<MemberSignature Language="VB.NET" Value="Public Overridable Property AutoGeneratePassword As Boolean" />
<MemberSignature Language="F#" Value="member this.AutoGeneratePassword : bool with get, set" Usage="System.Web.UI.WebControls.CreateUserWizard.AutoGeneratePassword" />
<MemberSignature Language="C++ CLI" Value="public:
 virtual property bool AutoGeneratePassword { bool get(); void set(bool value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.DefaultValue(false)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.DefaultValue(false)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Web.UI.Themeable(false)]</AttributeName>
<AttributeName Language="F#">[<System.Web.UI.Themeable(false)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets a value indicating whether or not to automatically generate a password for the new user account.</summary>
<value>
<see langword="true" /> to automatically generate a password for the new user account; otherwise, <see langword="false" />. The default value is <see langword="false" />.
This property cannot be set by themes or style sheet themes. For more information, see <see cref="T:System.Web.UI.ThemeableAttribute" /> and <see href="https://learn.microsoft.com/previous-versions/aspnet/ykzx33wh(v=vs.100)">ASP.NET Themes and Skins</see>.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Web.UI.WebControls.CreateUserWizard.AutoGeneratePassword%2A> property makes it possible to create user accounts without entering a password for them. For example, this functionality is useful when an administrator creates a new user's account and then gives a password to the user.
> [!IMPORTANT]
> You cannot create users using the <xref:System.Web.UI.WebControls.CreateUserWizard> if <xref:System.Web.UI.WebControls.CreateUserWizard.AutoGeneratePassword%2A> is set to `true` and the <xref:System.Web.Security.Membership.PasswordStrengthRegularExpression%2A> property is set in the application's Web.config. An error message indicating an invalid password will result.
]]></format>
</remarks>
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/ms178329(v=vs.100)">Login ASP.NET Controls</related>
</Docs>
</Member>
<Member MemberName="CompleteStep">
<MemberSignature Language="C#" Value="public System.Web.UI.WebControls.CompleteWizardStep CompleteStep { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Web.UI.WebControls.CompleteWizardStep CompleteStep" />
<MemberSignature Language="DocId" Value="P:System.Web.UI.WebControls.CreateUserWizard.CompleteStep" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property CompleteStep As CompleteWizardStep" />
<MemberSignature Language="F#" Value="member this.CompleteStep : System.Web.UI.WebControls.CompleteWizardStep" Usage="System.Web.UI.WebControls.CreateUserWizard.CompleteStep" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Web::UI::WebControls::CompleteWizardStep ^ CompleteStep { System::Web::UI::WebControls::CompleteWizardStep ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.Browsable(false)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.Browsable(false)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Web.UI.WebControls.CompleteWizardStep</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets a reference to the final user account creation step.</summary>
<value>A <see cref="T:System.Web.UI.WebControls.CompleteWizardStep" /> object that represents the final user account creation step.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Web.UI.WebControls.CreateUserWizard.CompleteStep%2A> property defines the final step for creating a user account. This property is read-only; however, you can set the properties of the <xref:System.Web.UI.WebControls.CompleteWizardStep> object that <xref:System.Web.UI.WebControls.CreateUserWizard.CompleteStep%2A> returns.
]]></format>
</remarks>
<altmember cref="T:System.Web.UI.WebControls.CompleteWizardStep" />
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/fs0za4w6(v=vs.100)">Wizard Web Server Control Overview</related>
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/ms178329(v=vs.100)">Login ASP.NET Controls</related>
</Docs>
</Member>
<Member MemberName="CompleteSuccessText">
<MemberSignature Language="C#" Value="public virtual string CompleteSuccessText { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance string CompleteSuccessText" />
<MemberSignature Language="DocId" Value="P:System.Web.UI.WebControls.CreateUserWizard.CompleteSuccessText" />
<MemberSignature Language="VB.NET" Value="Public Overridable Property CompleteSuccessText As String" />
<MemberSignature Language="F#" Value="member this.CompleteSuccessText : string with get, set" Usage="System.Web.UI.WebControls.CreateUserWizard.CompleteSuccessText" />
<MemberSignature Language="C++ CLI" Value="public:
 virtual property System::String ^ CompleteSuccessText { System::String ^ get(); void set(System::String ^ value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.Localizable(true)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.Localizable(true)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the text displayed when a Web site user account is created successfully.</summary>
<value>The text displayed when a Web site user account is created successfully. The default is "Your account has been successfully created." The default text for the control is localized based on the server's current locale.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.Web.UI.WebControls.CreateUserWizard.CompleteSuccessText%2A> property to change the message that is displayed when a user account is successfully created.
The value of this property, when set, can be saved automatically to a resource file by using a designer tool. For more information, see <xref:System.ComponentModel.LocalizableAttribute> and [Globalization and Localization](https://learn.microsoft.com/previous-versions/aspnet/c6zyy3s9(v=vs.100)).
## Examples
The following code example uses the <xref:System.Web.UI.WebControls.CreateUserWizard.OnCreatedUser%2A> method to change the <xref:System.Web.UI.WebControls.CreateUserWizard.CompleteSuccessText%2A> property to include the user name in the displayed text.
:::code language="aspx-csharp" source="~/snippets/csharp/VS_Snippets_WebNet/CreateUserWizardCompleteSuccessText/CS/createuserwizardcompletesuccesstextcs.aspx" id="Snippet1":::
:::code language="aspx-vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/CreateUserWizardCompleteSuccessText/VB/createuserwizardcompletesuccesstextvb.aspx" id="Snippet1":::
]]></format>
</remarks>
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/ms178329(v=vs.100)">Login ASP.NET Controls</related>
</Docs>
</Member>
<Member MemberName="CompleteSuccessTextStyle">
<MemberSignature Language="C#" Value="public System.Web.UI.WebControls.TableItemStyle CompleteSuccessTextStyle { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Web.UI.WebControls.TableItemStyle CompleteSuccessTextStyle" />
<MemberSignature Language="DocId" Value="P:System.Web.UI.WebControls.CreateUserWizard.CompleteSuccessTextStyle" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property CompleteSuccessTextStyle As TableItemStyle" />
<MemberSignature Language="F#" Value="member this.CompleteSuccessTextStyle : System.Web.UI.WebControls.TableItemStyle" Usage="System.Web.UI.WebControls.CreateUserWizard.CompleteSuccessTextStyle" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Web::UI::WebControls::TableItemStyle ^ CompleteSuccessTextStyle { System::Web::UI::WebControls::TableItemStyle ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.DefaultValue(null)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.DefaultValue(null)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Content)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.NotifyParentProperty(true)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.NotifyParentProperty(true)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)]</AttributeName>
<AttributeName Language="F#">[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Web.UI.WebControls.TableItemStyle</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets a reference to a collection of properties that define the appearance of the text displayed when a Web site user account is created successfully.</summary>
<value>A reference to the <see cref="T:System.Web.UI.WebControls.TableItemStyle" /> that contains properties that define the appearance of the text displayed when a Web site user account is created successfully.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Web.UI.WebControls.CreateUserWizard.CompleteSuccessTextStyle%2A> defines the appearance of the text displayed when a Web site user account is created successfully in the <xref:System.Web.UI.WebControls.CreateUserWizard> control. This property is read-only; however, you can set the properties of the <xref:System.Web.UI.WebControls.TableItemStyle> object that it returns. You can set these properties declaratively in the form `Property-Subproperty`, where `Subproperty` represents a property of the <xref:System.Web.UI.WebControls.TableItemStyle> class (for example, `CompleteSuccessTextStyle-ForeColor`). You can set the property programmatically in the form `Property.Subproperty` (for example, `CompleteSuccessTextStyle.ForeColor`).
The <xref:System.Web.UI.WebControls.CreateUserWizard.CompleteSuccessTextStyle%2A> property defines the appearance of the text displayed when a Web site user account is created successfully, after the user has clicked the **Continue** button on the <xref:System.Web.UI.WebControls.CreateUserWizard.CreateUserStep%2A> step.
The style settings for the <xref:System.Web.UI.WebControls.CreateUserWizard.CompleteSuccessTextStyle%2A> property are merged with the style settings for the <xref:System.Web.UI.WebControls.CreateUserWizard> control. Any settings applied in the <xref:System.Web.UI.WebControls.CreateUserWizard.CompleteSuccessTextStyle%2A> property override the corresponding settings in properties of the <xref:System.Web.UI.WebControls.CreateUserWizard> control.
The following <xref:System.Web.UI.WebControls.CreateUserWizard> style properties are overridden by <xref:System.Web.UI.WebControls.CreateUserWizard.CompleteSuccessTextStyle%2A> settings:
- <xref:System.Web.UI.WebControls.Style.BackColor%2A>
- <xref:System.Web.UI.WebControls.Style.BorderColor%2A>
- <xref:System.Web.UI.WebControls.Style.BorderStyle%2A>
- <xref:System.Web.UI.WebControls.Style.BorderWidth%2A>
- <xref:System.Web.UI.WebControls.Style.Font%2A>
- <xref:System.Web.UI.WebControls.Style.ForeColor%2A>
- <xref:System.Web.UI.WebControls.Style.Height%2A>
- <xref:System.Web.UI.WebControls.Style.Width%2A>
However, when you use templates to define the appearance of the <xref:System.Web.UI.WebControls.CreateUserWizard> control, the <xref:System.Web.UI.WebControls.CreateUserWizard.CompleteSuccessTextStyle%2A> property has no effect.
]]></format>
</remarks>
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/ms178329(v=vs.100)">Login ASP.NET Controls</related>
</Docs>
</Member>
<Member MemberName="ConfirmPassword">
<MemberSignature Language="C#" Value="public virtual string ConfirmPassword { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance string ConfirmPassword" />
<MemberSignature Language="DocId" Value="P:System.Web.UI.WebControls.CreateUserWizard.ConfirmPassword" />
<MemberSignature Language="VB.NET" Value="Public Overridable ReadOnly Property ConfirmPassword As String" />
<MemberSignature Language="F#" Value="member this.ConfirmPassword : string" Usage="System.Web.UI.WebControls.CreateUserWizard.ConfirmPassword" />
<MemberSignature Language="C++ CLI" Value="public:
 virtual property System::String ^ ConfirmPassword { System::String ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.Browsable(false)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.Browsable(false)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the second password entered by the user.</summary>
<value>The second password entered by the user. The default value is an empty string ("").</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Web.UI.WebControls.CreateUserWizard.ConfirmPassword%2A> property contains the second password (the confirmation password) entered by the user. By default, a <xref:System.Web.UI.WebControls.CompareValidator> object is provided for the <xref:System.Web.UI.WebControls.CreateUserWizard.Password%2A> and <xref:System.Web.UI.WebControls.CreateUserWizard.ConfirmPassword%2A> text box values. Each text box displayed on the <xref:System.Web.UI.WebControls.CreateUserWizard> control also has a <xref:System.Web.UI.WebControls.RequiredFieldValidator> associated with it.
]]></format>
</remarks>
<altmember cref="P:System.Web.UI.WebControls.CreateUserWizard.Password" />
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/ms178329(v=vs.100)">Login ASP.NET Controls</related>
</Docs>
</Member>
<Member MemberName="ConfirmPasswordCompareErrorMessage">
<MemberSignature Language="C#" Value="public virtual string ConfirmPasswordCompareErrorMessage { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance string ConfirmPasswordCompareErrorMessage" />
<MemberSignature Language="DocId" Value="P:System.Web.UI.WebControls.CreateUserWizard.ConfirmPasswordCompareErrorMessage" />
<MemberSignature Language="VB.NET" Value="Public Overridable Property ConfirmPasswordCompareErrorMessage As String" />
<MemberSignature Language="F#" Value="member this.ConfirmPasswordCompareErrorMessage : string with get, set" Usage="System.Web.UI.WebControls.CreateUserWizard.ConfirmPasswordCompareErrorMessage" />
<MemberSignature Language="C++ CLI" Value="public:
 virtual property System::String ^ ConfirmPasswordCompareErrorMessage { System::String ^ get(); void set(System::String ^ value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.Localizable(true)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.Localizable(true)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the error message shown when the user enters two different passwords in the password and confirm password text boxes.</summary>
<value>The error message shown when the user enters two different passwords in the password and confirm password text boxes. The default value is "The Password and Confirmation Password must match." The default text for the control is localized based on the server's current locale.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The value of this property, when set, can be saved automatically to a resource file by using a designer tool. For more information, see <xref:System.ComponentModel.LocalizableAttribute> and [Globalization and Localization](https://learn.microsoft.com/previous-versions/aspnet/c6zyy3s9(v=vs.100)).
]]></format>
</remarks>
<altmember cref="P:System.Web.UI.WebControls.CreateUserWizard.Password" />
<altmember cref="P:System.Web.UI.WebControls.CreateUserWizard.ConfirmPassword" />
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/ms178329(v=vs.100)">Login ASP.NET Controls</related>
</Docs>
</Member>
<Member MemberName="ConfirmPasswordLabelText">
<MemberSignature Language="C#" Value="public virtual string ConfirmPasswordLabelText { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance string ConfirmPasswordLabelText" />
<MemberSignature Language="DocId" Value="P:System.Web.UI.WebControls.CreateUserWizard.ConfirmPasswordLabelText" />
<MemberSignature Language="VB.NET" Value="Public Overridable Property ConfirmPasswordLabelText As String" />
<MemberSignature Language="F#" Value="member this.ConfirmPasswordLabelText : string with get, set" Usage="System.Web.UI.WebControls.CreateUserWizard.ConfirmPasswordLabelText" />
<MemberSignature Language="C++ CLI" Value="public:
 virtual property System::String ^ ConfirmPasswordLabelText { System::String ^ get(); void set(System::String ^ value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.Localizable(true)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.Localizable(true)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets text of the label for the second password text box.</summary>
<value>The label text that identifies the confirm password text box. The default value is "Confirm Password:". The default text for the control is localized based on the server's current locale.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The value of this property, when set, can be saved automatically to a resource file by using a designer tool. For more information, see <xref:System.ComponentModel.LocalizableAttribute> and [Globalization and Localization](https://learn.microsoft.com/previous-versions/aspnet/c6zyy3s9(v=vs.100)).
]]></format>
</remarks>
<altmember cref="P:System.Web.UI.WebControls.CreateUserWizard.ConfirmPassword" />
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/ms178329(v=vs.100)">Login ASP.NET Controls</related>
</Docs>
</Member>
<Member MemberName="ConfirmPasswordRequiredErrorMessage">
<MemberSignature Language="C#" Value="public virtual string ConfirmPasswordRequiredErrorMessage { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance string ConfirmPasswordRequiredErrorMessage" />
<MemberSignature Language="DocId" Value="P:System.Web.UI.WebControls.CreateUserWizard.ConfirmPasswordRequiredErrorMessage" />
<MemberSignature Language="VB.NET" Value="Public Overridable Property ConfirmPasswordRequiredErrorMessage As String" />
<MemberSignature Language="F#" Value="member this.ConfirmPasswordRequiredErrorMessage : string with get, set" Usage="System.Web.UI.WebControls.CreateUserWizard.ConfirmPasswordRequiredErrorMessage" />
<MemberSignature Language="C++ CLI" Value="public:
 virtual property System::String ^ ConfirmPasswordRequiredErrorMessage { System::String ^ get(); void set(System::String ^ value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.Localizable(true)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.Localizable(true)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the error message displayed when the user leaves the confirm password text box empty.</summary>
<value>The error message displayed when the user leaves the confirm password text box empty. The default value is "Confirm Password is required." The default text for the control is localized based on the server's current locale.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The value of this property, when set, can be saved automatically to a resource file by using a designer tool. For more information, see <xref:System.ComponentModel.LocalizableAttribute> and [Globalization and Localization](https://learn.microsoft.com/previous-versions/aspnet/c6zyy3s9(v=vs.100)).
]]></format>
</remarks>
<altmember cref="P:System.Web.UI.WebControls.CreateUserWizard.ConfirmPassword" />
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/ms178329(v=vs.100)">Login ASP.NET Controls</related>
</Docs>
</Member>
<Member MemberName="ContinueButtonClick">
<MemberSignature Language="C#" Value="public event EventHandler ContinueButtonClick;" />
<MemberSignature Language="ILAsm" Value=".event class System.EventHandler ContinueButtonClick" />
<MemberSignature Language="DocId" Value="E:System.Web.UI.WebControls.CreateUserWizard.ContinueButtonClick" />
<MemberSignature Language="VB.NET" Value="Public Custom Event ContinueButtonClick As EventHandler " />
<MemberSignature Language="F#" Value="member this.ContinueButtonClick : EventHandler " Usage="member this.ContinueButtonClick : System.EventHandler " />
<MemberSignature Language="C++ CLI" Value="public:
 event EventHandler ^ ContinueButtonClick;" />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.EventHandler</ReturnType>
</ReturnValue>
<Docs>