PasswordRecovery Control Problem
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: PasswordRecovery Control Problem

  1. #1
    Join Date
    Apr 2004
    Location
    Toronto, Canada
    Posts
    108

    Question PasswordRecovery Control Problem

    Hi:
    A little background first, sorry if it's long-winded:

    My WEB site uses the ASP.NET Membership and Authentication system. I used that "aspnet_regsql" utility to generate an SQL script for me which I ran against the database and it installs all the tables and relationships that you need to use this system.

    So, I've successfully implemented the Login control. I converted it to a template and added a few things including a link button for "I forgot my password".

    I implemented that "Password Recovery" control as well - also converting to template and making some minor cosmetic changes. This control is working fine except for one thing:

    The PasswordRecovery control contains THREE view Templates:

    • UserNameTemplate
    • QuestionTemplate
    • SuccessTemplate


    In the UserNameTemplate, the user enters his/her UserName and clicks "Submit". If the user name is found in the database, it automatically switches to the QuestionTemplate.

    Now, what if the user changes their mind, for whatever reason, about recovering their password?

    I added an extra button to the QuestionTemplate, "Cancel", but it's not so simple. I can go back to the Login interface, but if I select "I forgot my password" again, it takes me back to the QuestionTemplate. I don't want this. I want it to go to the UserNameTemplate and start over again.

    I cannot figure out how to reset or clear or somehow FORCE the PR control to restart at UserNameTemplate. I have been searching through the documentation for the better part of a day and looked at many web sites and tutorials explaining how to use this control, but there is nothing about how to put this control back into it's initial state.

    Can anyone help me with this or make a suggestion?
    Greatly appreciated in advance.
    Mark

  2. #2
    Join Date
    Mar 2004
    Posts
    2

    Re: PasswordRecovery Control Problem

    Did you figure this out, I’m facing the same problem. How is the PasswordRecovery control to be reset to show the UserNameTemplate?

  3. #3
    Join Date
    Mar 2004
    Posts
    2

    Re: PasswordRecovery Control Problem

    Anyone?? Please!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center