I am trying to make a custom Create User Wizard control but after I have done it up the page is still showing the default requirements. Can anyone tell me what I am doing wrong?
That was the page I used to build mine, it does not seem to address the issue that even after using a Content Template I am still getting the default out put
<asp:CreateUserWizard ID="CreateUserWizard1" Runat="server">
<WizardSteps>
<asp:CreateUserWizardStep runat="server">
<ContentTemplate>
//table here with labels and textboxes
</ContentTemplate>
</asp:CreateUserWizardStep>
<asp:CompleteWizardStep runat="server">
<ContentTemplate>
//table here with labels and textboxes
</ContentTemplate>
</asp:CompleteWizardStep>
</WizardSteps>
</asp:CreateUserWizard>
Eagle_f90
Member
467 Points
545 Posts
Made a custom CreateUserWizard control but still geting default display
Feb 28, 2012 12:49 AM|LINK
I am trying to make a custom Create User Wizard control but after I have done it up the page is still showing the default requirements. Can anyone tell me what I am doing wrong?
<asp:CreateUserWizard ID="CreateUserWizard" runat="server"> <WizardSteps> <asp:WizardStep ID="CreateUserWizardStep1" runat="server"> <p> User Name:<asp:TextBox ID="UserName" runat="server" /> <asp:RequiredFieldValidator ID="UserNameRequired" ControlToValidate="UserName" ErrorMessage="User Name is required." Display="Dynamic" runat="server" /> <br />Password: <asp:TextBox ID="Password" TextMode="Password" runat="server" /> <asp:RequiredFieldValidator ID="PasswordRequired" ControlToValidate="Password" ErrorMessage="Password is required." Display="Dynamic" runat="server" /> <br />Confirm Password: <asp:TextBox ID="ConfirmPassword" TextMode="Password" runat="server" /> <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" ControlToValidate="ConfirmPassword" ErrorMessage="Confirm Password is required." Display="Dynamic" runat="server" /> <br />Email Address:<asp:TextBox ID="Email" runat="server" /> <asp:RequiredFieldValidator ID="EmailRequired" ControlToValidate="Email" ErrorMessage="Email Address is required." Display="Dynamic" runat="server" /> <br />Security Question: <asp:TextBox ID="SecurityQuestion" runat="server" /> <asp:RequiredFieldValidator ID="SecurityQuestionRequired" ControlToValidate="SecurityQuestion" ErrorMessage="Security Question is required." Display="Dynamic" runat="server" /> <br />Security Answer: <asp:TextBox ID="SecurityAnswer" runat="server" /> <asp:RequiredFieldValidator ID="SecurityAnswerRequired" ControlToValidate="SecurityAnswer" ErrorMessage="Security Answer is required." Display="Dynamic" runat="server" /> </p> </asp:WizardStep> </WizardSteps> </asp:CreateUserWizard>Frank Jiang ...
All-Star
16006 Points
1728 Posts
Microsoft
Re: Made a custom CreateUserWizard control but still geting default display
Mar 01, 2012 02:15 AM|LINK
Hi,
<asp:CreateUserWizard ID="CreateUserWizard" runat="server"> <WizardSteps> <asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server"> <ContentTemplate> <p> User Name:<asp:TextBox ID="UserName" runat="server" /> <asp:RequiredFieldValidator ID="UserNameRequired" ControlToValidate="UserName" ErrorMessage="User Name is required." Display="Dynamic" runat="server" /> <br />Password: <asp:TextBox ID="Password" TextMode="Password" runat="server" /> <asp:RequiredFieldValidator ID="PasswordRequired" ControlToValidate="Password" ErrorMessage="Password is required." Display="Dynamic" runat="server" /> <br />Confirm Password: <asp:TextBox ID="ConfirmPassword" TextMode="Password" runat="server" /> <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" ControlToValidate="ConfirmPassword" ErrorMessage="Confirm Password is required." Display="Dynamic" runat="server" /> <br />Email Address:<asp:TextBox ID="Email" runat="server" /> <asp:RequiredFieldValidator ID="EmailRequired" ControlToValidate="Email" ErrorMessage="Email Address is required." Display="Dynamic" runat="server" /> <br />Security Question: <asp:TextBox ID="SecurityQuestion" runat="server" /> <asp:RequiredFieldValidator ID="SecurityQuestionRequired" ControlToValidate="SecurityQuestion" ErrorMessage="Security Question is required." Display="Dynamic" runat="server" /> <br />Security Answer: <asp:TextBox ID="SecurityAnswer" runat="server" /> <asp:RequiredFieldValidator ID="SecurityAnswerRequired" ControlToValidate="SecurityAnswer" ErrorMessage="Security Answer is required." Display="Dynamic" runat="server" /> </p> </ContentTemplate> </asp:CreateUserWizardStep> </WizardSteps> </asp:CreateUserWizard>Please read this article and you will get more:
http://www.4guysfromrolla.com/articles/070506-1.aspx
Thanks
Feedback to us
Develop and promote your apps in Windows Store
Eagle_f90
Member
467 Points
545 Posts
Re: Made a custom CreateUserWizard control but still geting default display
Mar 01, 2012 10:21 AM|LINK
That was the page I used to build mine, it does not seem to address the issue that even after using a Content Template I am still getting the default out put
Trouble88
Member
41 Points
25 Posts
Re: Made a custom CreateUserWizard control but still geting default display
Mar 02, 2012 08:33 PM|LINK
This is going to be the template for the wizard
<asp:CreateUserWizard ID="CreateUserWizard1" Runat="server"> <WizardSteps> <asp:CreateUserWizardStep runat="server"> <ContentTemplate> //table here with labels and textboxes </ContentTemplate> </asp:CreateUserWizardStep> <asp:CompleteWizardStep runat="server"> <ContentTemplate> //table here with labels and textboxes </ContentTemplate> </asp:CompleteWizardStep> </WizardSteps> </asp:CreateUserWizard>http://msdn.microsoft.com/en-us/library/ms178342.aspx
-Nici
Eagle_f90
Member
467 Points
545 Posts
Re: Made a custom CreateUserWizard control but still geting default display
Mar 02, 2012 10:25 PM|LINK
So the template MUST be a table format?
Trouble88
Member
41 Points
25 Posts
Re: Made a custom CreateUserWizard control but still geting default display
Mar 05, 2012 05:59 PM|LINK
probably not as long as your textboxes and label are in the contenttemplate section. tables just help for formating