well, if you want it without the security question and answer, you have to
reinvent it (you have to use your own custom login form with textboxes and
submit button and Membership.CreateUser to make changes...

2009/12/9 neema n <[email protected]>

> No ba ba i don want please let me knw the soln
>
> On Dec 8, 5:18 pm, Processor Devil <[email protected]> wrote:
> > Let the security answer there, it will be easier for you ;-)
> >
> > 2009/12/8 neema n <[email protected]>
> >
> >
> >
> > > hi friend i would like to customize CreateUserwiard
> > > I wud like to use email id as user name and like to add some more
> > > controls on create userwizard
> > > i disabled Security Question and Security answers..
> > > im getting following error
> > > Please enter a different security answer
> >
> > > Here is my code
> >
> > > <asp:CreateUserWizard ID="CreateUserWizard1" runat="server">
> > >            <WizardSteps>
> > >                <asp:CreateUserWizardStep runat="server">
> > >                    <ContentTemplate>
> > >                        <table border="0">
> > >                            <tr>
> > >                                <td align="center" colspan="2">
> > >                                    Sign Up for Your New Account</td>
> > >                            </tr>
> > >                            <tr>
> > >                                <td align="right">
> > >                                    <asp:Label ID="UserNameLabel"
> > > runat="server" AssociatedControlID="UserName">User Name:</asp:Label></
> > > td>
> > >                                <td>
> > >                                    <asp:TextBox ID="UserName"
> > > runat="server"></asp:TextBox>
> > >                                    <asp:RequiredFieldValidator
> > > ID="UserNameRequired" runat="server" ControlToValidate="UserName"
> > >                                        ErrorMessage="User Name is
> > > required." ToolTip="User Name is required."
> > > ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
> > >                                    <asp:RegularExpressionValidator
> > > ID="RegularExpressionValidator1" runat="server"
> > > ControlToValidate="UserName"
> >
> > > ErrorMessage="RegularExpressionValidator" ValidationExpression="\w+([-
> > > +.']\w+)*...@\w+([-.]\w+)*\.\w+([-.]\w+)*"></
> > > asp:RegularExpressionValidator></td>
> > >                            </tr>
> > >                            <tr>
> > >                                <td align="right">
> > >                                    <asp:Label ID="PasswordLabel"
> > > runat="server" AssociatedControlID="Password">Password:</asp:Label></
> > > td>
> > >                                <td>
> > >                                    <asp:TextBox ID="Password"
> > > runat="server" TextMode="Password"></asp:TextBox>
> > >                                    <asp:RequiredFieldValidator
> > > ID="PasswordRequired" runat="server" ControlToValidate="Password"
> > >                                        ErrorMessage="Password is
> > > required." ToolTip="Password is required."
> > > ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
> > >                                </td>
> > >                            </tr>
> > >                            <tr>
> > >                                <td align="right" style="height:
> > > 26px">
> > >                                    <asp:Label
> > > ID="ConfirmPasswordLabel" runat="server"
> > > AssociatedControlID="ConfirmPassword">Confirm Password:</asp:Label></
> > > td>
> > >                                <td style="height: 26px">
> > >                                    <asp:TextBox ID="ConfirmPassword"
> > > runat="server" TextMode="Password"></asp:TextBox>
> > >                                    <asp:RequiredFieldValidator
> > > ID="ConfirmPasswordRequired" runat="server"
> > > ControlToValidate="ConfirmPassword"
> > >                                        ErrorMessage="Confirm Password
> > > is required." ToolTip="Confirm Password is required."
> >
> > > ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
> > >                                </td>
> > >                            </tr>
> > >                            <tr>
> > >                                <td align="right">
> > >                                    <asp:Label ID="EmailLabel"
> > > runat="server" AssociatedControlID="Email" Visible="False">E-mail:</
> > > asp:Label></td>
> > >                                <td>
> > >                                    <asp:TextBox ID="Email"
> > > runat="server" Visible="False"></asp:TextBox>
> > >                                    <asp:RequiredFieldValidator
> > > ID="EmailRequired" runat="server" ControlToValidate="Email"
> > >                                        ErrorMessage="E-mail is
> > > required." ToolTip="E-mail is required."
> > > ValidationGroup="CreateUserWizard1"
> > >                                        Visible="False">*</
> > > asp:RequiredFieldValidator>
> > >                                </td>
> > >                            </tr>
> > >                            <tr>
> > >                                <td align="right" style="height:
> > > 26px">
> > >                                    <asp:Label ID="QuestionLabel"
> > > runat="server" AssociatedControlID="Question" Visible="False">Security
> > > Question:</asp:Label></td>
> > >                                <td style="height: 26px">
> > >                                    <asp:TextBox ID="Question"
> > > runat="server" Visible="False"></asp:TextBox>
> > >                                    <asp:RequiredFieldValidator
> > > ID="QuestionRequired" runat="server" ControlToValidate="Question"
> > >                                        ErrorMessage="Security
> > > question is required." ToolTip="Security question is required."
> >
> > > ValidationGroup="CreateUserWizard1" Visible="False">*</
> > > asp:RequiredFieldValidator>
> > >                                </td>
> > >                            </tr>
> > >                            <tr>
> > >                                <td align="right">
> > >                                    <asp:Label ID="AnswerLabel"
> > > runat="server" AssociatedControlID="Answer" Visible="False">Security
> > > Answer:</asp:Label></td>
> > >                                <td>
> > >                                    <asp:TextBox ID="Answer"
> > > runat="server" Visible="False"></asp:TextBox>
> > >                                    <asp:RequiredFieldValidator
> > > ID="AnswerRequired" runat="server" ControlToValidate="Answer"
> > >                                        ErrorMessage="Security answer
> > > is required." ToolTip="Security answer is required."
> >
> > > ValidationGroup="CreateUserWizard1" Visible="False">*</
> > > asp:RequiredFieldValidator>
> > >                                </td>
> > >                            </tr>
> > >                            <tr>
> > >                                <td align="center" colspan="2">
> > >                                    <asp:CompareValidator
> > > ID="PasswordCompare" runat="server" ControlToCompare="Password"
> >
> > > ControlToValidate="ConfirmPassword" Display="Dynamic"
> > > ErrorMessage="The Password and Confirmation Password must match."
> >
> > > ValidationGroup="CreateUserWizard1"></asp:CompareValidator>
> > >                                </td>
> > >                            </tr>
> > >                            <tr>
> > >                                <td align="center" colspan="2"
> > > style="color: red">
> > >                                    <asp:Literal ID="ErrorMessage"
> > > runat="server" EnableViewState="False"></asp:Literal>
> > >                                </td>
> > >                            </tr>
> > >                                                    </table>
> > >                    </ContentTemplate>
> > >                </asp:CreateUserWizardStep>
> > >                <asp:CompleteWizardStep runat="server">
> > >                </asp:CompleteWizardStep>
> > >            </WizardSteps>
> > >        </asp:CreateUserWizard>
> >
> > >  protected void CreateUserWizard1_CreatedUser(object sender,
> > > EventArgs e)
> > >    {
> > >        CreateUserWizard cuw = (CreateUserWizard)sender;
> > >        cuw.Email = cuw.UserName;
> >
> > >    }
>

Reply via email to