Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7056473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:52:17+00:00 2026-05-28T03:52:17+00:00

I have a simple create user wizard control and It’s working pretty well upto

  • 0

I have a simple create user wizard control and It’s working pretty well upto now.
The problem is I want to disable create user from logging in immediately after he create his account and I am able to do it by simply setting DisableCreatedUser property to true

But unfortunately when I try to refresh the page immediately after creating an account and check it shows me the user logged in.

And If user directly clicks login and checks it’s giving me an error that he needs to activate his account.

So how do I disable user though he tries to refresh the page?

Any help will be greatly appreciated!

 <asp:UpdatePanel ID="UpdatePanel1" runat="server">
          <ContentTemplate>
           <asp:CreateUserWizard ID="CreateUserWizard1" runat="server" 
                  DisableCreatedUser="True" 
                  LoginCreatedUser="False">
            <ContinueButtonStyle BorderStyle="None" CssClass="btn big" Font-Size="12px"/>
            <CreateUserButtonStyle CssClass="btn big" Height="30px" 
                        Width="125px" BorderStyle="None" Font-Size="12px" />

            <WizardSteps>
                 <asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server">
                  <ContentTemplate>
                  <table>
                  <tr>
                  <td align="right">
                  <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName" style="z-index:2; position:relative !important;">User Name:</asp:Label>
                   </td>
                   <td>
                   <asp:TextBox ID="UserName" runat="server" BorderStyle="Solid" BorderWidth="1px" BorderColor="#0099CC" BackColor="#FAFFBD"></asp:TextBox>
                   <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                                              ControlToValidate="UserName" ErrorMessage="User Name is required." 
                                              ToolTip="User Name is required." ValidationGroup="CreateUserWizard1" 
                                              CssClass="signupvalidators" ForeColor="Red">*</asp:RequiredFieldValidator>
                     </td>
                     </tr>
                                  <tr>
                                      <td align="right">
                                          <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password" style="z-index:2; position:relative !important;">Password:</asp:Label>
                                      </td>
                                      <td>
                                          <asp:TextBox ID="Password" runat="server" TextMode="Password" BorderStyle="Solid" BorderWidth="1px" BorderColor="#0099CC" BackColor="#FAFFBD"></asp:TextBox>
                                          <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" 
                                              ControlToValidate="Password" ErrorMessage="Password is required." 
                                              ToolTip="Password is required." ValidationGroup="CreateUserWizard1" 
                                              CssClass="signupvalidators" ForeColor="Red">*</asp:RequiredFieldValidator>
                                      </td>
                                  </tr>
                                  <tr>
                                      <td align="right">
                                          <asp:Label ID="ConfirmPasswordLabel" runat="server" 
                                              AssociatedControlID="ConfirmPassword" style="z-index:2; position:relative !important;">Confirm Password:</asp:Label>
                                      </td>
                                      <td>
                                          <asp:TextBox ID="ConfirmPassword" runat="server" TextMode="Password" BorderStyle="Solid" BorderWidth="1px" BorderColor="#0099CC" BackColor="#FAFFBD"></asp:TextBox>
                                          <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" 
                                              ControlToValidate="ConfirmPassword" 
                                              ErrorMessage="Confirm Password is required." 
                                              ToolTip="Confirm Password is required." 
                                              ValidationGroup="CreateUserWizard1" CssClass="signupvalidators" ForeColor="Red">*</asp:RequiredFieldValidator>
                                      </td>
                                  </tr>
                                  <tr>
                                      <td align="right">
                                          <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email" style="z-index:2; position:relative !important;">E-mail:</asp:Label>
                                      </td>
                                      <td>
                                          <asp:TextBox ID="Email" runat="server" BorderStyle="Solid" BorderWidth="1px" BorderColor="#0099CC" BackColor="#FAFFBD"></asp:TextBox>
                                          <asp:RequiredFieldValidator ID="EmailRequired" runat="server" 
                                              ControlToValidate="Email" ErrorMessage="E-mail is required." 
                                              ToolTip="E-mail is required." ValidationGroup="CreateUserWizard1" 
                                              CssClass="signupvalidators" ForeColor="Red">*</asp:RequiredFieldValidator>
                                      </td>
                                  </tr>
                                  <tr>
                                      <td align="right">
                                          <asp:Label ID="QuestionLabel" runat="server" AssociatedControlID="Question" style="z-index:2; position:relative !important;">Security Question:</asp:Label>
                                      </td>
                                      <td>
                                          <asp:TextBox ID="Question" runat="server" BorderStyle="Solid" BorderWidth="1px" BorderColor="#0099CC" BackColor="#FAFFBD"></asp:TextBox>
                                          <asp:RequiredFieldValidator ID="QuestionRequired" runat="server" 
                                              ControlToValidate="Question" ErrorMessage="Security question is required." 
                                              ToolTip="Security question is required." 
                                              ValidationGroup="CreateUserWizard1" CssClass="signupvalidators" ForeColor="Red">*</asp:RequiredFieldValidator>
                                      </td>
                                  </tr>
                                  <tr>
                                      <td align="right">
                                          <asp:Label ID="AnswerLabel" runat="server" AssociatedControlID="Answer" style="z-index:2; position:relative !important;">Security Answer:</asp:Label>
                                      </td>
                                      <td>
                                          <asp:TextBox ID="Answer" runat="server" BorderStyle="Solid" BorderWidth="1px" BorderColor="#0099CC" BackColor="#FAFFBD"></asp:TextBox>
                                          <asp:RequiredFieldValidator ID="AnswerRequired" runat="server" 
                                              ControlToValidate="Answer" ErrorMessage="Security answer is required." 
                                              ToolTip="Security answer is required." ValidationGroup="CreateUserWizard1" 
                                              CssClass="signupvalidators" ForeColor="Red">*</asp:RequiredFieldValidator>
                                      </td>
                                  </tr>
                              <tr>
                              <td align="center" colspan="2">
                                  <asp:RegularExpressionValidator ID="UsernameLength" runat="server" 
                                      ErrorMessage="Username should be minimum 5-10 characters." 
                                      ControlToValidate="UserName" Display="Dynamic" ForeColor="Red" 
                                      ValidationExpression="^[\s\S]{5,10}$" ValidationGroup="CreateUserWizard1"></asp:RegularExpressionValidator>
                              </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" ForeColor="Red"></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>
                                  <tr>
                                  <td  align="center" colspan="2">
                                   <asp:RegularExpressionValidator ID="PasswordLength" runat="server"  Display="Dynamic"
                                              ErrorMessage="Password length minimum: 7. Non-alphanumeric characters required: 1" 
                                              ControlToValidate="Password" ValidationExpression="(?=^.{7,51}$)([A-Za-z]{1})([A-Za-z0-9!@#$%_\^\&amp;\*\-\.\?]{5,49})$" 
                                          ForeColor="Red" ValidationGroup="CreateUserWizard1"></asp:RegularExpressionValidator>
                                  </td>
                                  </tr>
                                  <tr>
                                   <td  align="center" colspan="2">
                                      <asp:RegularExpressionValidator ID="EmailValidator" runat="server" Display="Dynamic"
                                            ControlToValidate="Email"  ErrorMessage="Please enter a valid e-mail address." ValidationExpression="^[\w-]+(\.[\w-]+)*@([a-z0-9-]+(\.[a-z0-9-]+)*?\.[a-z]{2,6}|(\d{1,3}\.){3}\d{1,3})(:\d{4})?$"  ForeColor="Red" ValidationGroup="CreateUserWizard1"></asp:RegularExpressionValidator>
                                  </td> 
                                  </tr>
                              </table>

                               <asp:UpdateProgress ID="UpdateProgressUserDetails" runat="server" DisplayAfter="0">
                                        <ProgressTemplate>
                                            <div style="position: absolute; top: 215px; left:140px;">
                                                <img src="img/Loader.gif" alt="loading" /><br />
                                               <%-- <span style="font-weight: bold; font-size: large; color: #000000;">Please wait...</span>--%>
                                            </div>
                                        </ProgressTemplate>
                                    </asp:UpdateProgress>
                          </ContentTemplate>
                      </asp:CreateUserWizardStep>
                      <asp:CompleteWizardStep ID="CompleteWizardStep1" runat="server">
                      </asp:CompleteWizardStep>
                  </WizardSteps>
              </asp:CreateUserWizard>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T03:52:18+00:00Added an answer on May 28, 2026 at 3:52 am

    I found the solution at last and it is because of this single line in my code-behind:

    FormsAuthentication.SetAuthCookie(CreateUserWizard1.UserName, False)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple create user wizard and custom membership provider which was taken
i have very simple problem. I need to create model, that represent element of
I have simple user control with include ajax control - CalendarExtender. This is code:
I currently have a simple <div contenteditable=true> working, but, here's my problem. Currently, the
I have a ASP.Net create user wizard. One of the additional steps I included
I am trying to create simple user registration form. I have an index.html file
I have a simple PowerShell script that uses WMI to create a web site
I have a simple table in Sybase, let's say it looks as follows: CREATE
I'm new to postgreSQL and I have a simple question: I'm trying to create
How to manually create Friendly URLs? (PHP) So I have created simple php file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.