Implementation of the creatuserwizard custom template

Source: Internet
Author: User
<Asp: createuserwizard id =" Createuserwizard1 "Runat =" server ">
< Wizardsteps >
< ASP: createuserwizardstep Runat = "server">
< Contenttemplate >
& Nbsp register a new account <br/>
<Asp: Label id = "usernamelabel" runat = "server" associatedcontrolid =" Username "> User Name:
</ASP: Label>
<Asp: textbox id =" Username "Runat =" server ">
</ASP: textbox>
<Asp: Requiredfieldvalidator Id = "usernamerequired" runat = "server" Controltovalidate = "username "
Errormessage = "username required" tooltip = "username required ""
Validationgroup =" Createuserwizard1 "> * </ASP: requiredfieldvalidator> </BR>

<Asp: Label id = "passwordlabel" runat = "server" associatedcontrolid = "password"> password:
</ASP: Label>
<Asp: textbox id = "password" runat = "server" textmode = "password">
</ASP: textbox>
<Asp: requiredfieldvalidator id = "requiredfieldvalidator1" runat = "server" controltovalidate = "password"
Errormessage = "Password required" "tooltip =" Password required ""
Validationgroup = "createuserwizard1"> * </ASP: requiredfieldvalidator> <br/>

<Asp: Label id = "confirmpasswordlabel" runat = "server" associatedcontrolid = "confirmpassword"> confirm the password:
</ASP: Label>
<Asp: textbox id = "confirmpassword" runat = "server">
</ASP: textbox>
<Asp: requiredfieldvalidator id = "requiredfieldvalidator2" runat = "server" controltovalidate = "confirmpassword"
Errormessage = "you must enter" Confirm Password "" tooltip = "you must enter" Confirm Password ""
Validationgroup = "createuserwizard1"> * </ASP: requiredfieldvalidator> <br/>

<Asp: Label id = "emaillabel" runat = "server" associatedcontrolid = "email"> Email:
</ASP: Label>
<Asp: textbox id = "email" runat = "server">
</ASP: textbox>
<Asp: requiredfieldvalidator id = "requiredfieldvalidator3" runat = "server" controltovalidate = "email"
Errormessage = "you must enter" email "" tooltip = "you must enter" email ""
Validationgroup = "createuserwizard1"> * </ASP: requiredfieldvalidator> <br/>

<Asp: Label id = "questionlabel" runat = "server" associatedcontrolid = "Quetion"> Security Prompt:
</ASP: Label>
<Asp: textbox id = "Quetion" runat = "server">
</ASP: textbox>
<Asp: requiredfieldvalidator id = "requiredfieldvalidator4" runat = "server" controltovalidate = "Quetion"
Errormessage = "you must enter" Security Prompt question "" tooltip = "you must enter" Security Prompt question ""
Validationgroup = "createuserwizard1"> * </ASP: requiredfieldvalidator> <br/>

<Asp: Label id = "answerlabel" runat = "server" associatedcontrolid = "username"> Security answer:
</ASP: Label>
<Asp: textbox id = "Answer" runat = "server">
</ASP: textbox>
<Asp: requiredfieldvalidator id = "requiredfieldvalidator5" runat = "server" controltovalidate = "Answer"
Errormessage = "you must enter" Security answer "" tooltip = "you must enter" Security answer ""
Validationgroup = "createuserwizard1"> * </ASP: requiredfieldvalidator> <br/>

comparevalidator id =" passwordcompare "runat =" server " controltocompare =" password "
controltovalidate =" confirmpassword "display =" dynamic " errormessage = "" password "and" Confirm Password "must match. "
validationgroup =" createuserwizard1 ">

< ASP: literal Id = "errormessage" runat = "server" enableviewstate = "false"> </ASP: literal>
</Contenttemplate>
</ASP: createuserwizardstep>
<Asp: completewizardstep runat = "server">
<Contenttemplate>
<Table border = "0">
<Tr>
<TD align = "center" colspan = "2">
Complete
</TD>
</Tr>
<Tr>
<TD>
You have successfully created your account.
</TD>
</Tr>
<Tr>
<TD align = "right" colspan = "2">
<Asp: button id = "continuebutton" runat = "server" causesvalidation = "false"
Commandname = "continue" text = "continue" validationgroup = "createuserwizard1"/>
</TD>
</Tr>
</Table>
</Contenttemplate>
</ASP: completewizardstep>
</Wizardsteps>
</ASP: createuserwizard>

However, the control IDs in the template must be fixed. If you change the settings, unpredictable errors will occur!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.