trouble with ChangePassword control

Discussion in 'ASP .Net' started by Jeff, Oct 13, 2008.

  1. Jeff

    Jeff Guest

    hi

    asp.net 2.0

    Here is the ChangePassword control markup on my webpage. The problem is that
    when I click the Submit button nothing happens (except that the textfields
    in the ChangePassword control is emptied)...

    any suggestions what I do wrong here?

    <asp:ChangePassword ID="ChangePassword1" runat="server">
    <ChangePasswordTemplate>
    <table style="background-color:#bbccee;">
    <tr>
    <td align="right">Nåværende Passord:</td>
    <td><asp:TextBox ID="CurrentPassword" TextMode="Password"
    runat="server"></asp:TextBox></td>
    <td>
    <asp:RequiredFieldValidator ID="valRequireUsername"
    SetFocusOnError="true"
    Display="Dynamic"
    ControlToValidate="CurrentPassword" runat="server"
    ErrorMessage="Nåværende passord er nødvendig"
    ValidationGroup="ChangePassword1" >*</asp:RequiredFieldValidator>
    </td>
    </tr>
    <tr>
    <td align="right">Nytt Passord:</td>
    <td><asp:TextBox ID="NewPassword" TextMode="Password"
    runat="server"></asp:TextBox>
    </td>
    <td></td>
    </tr>
    <tr>
    <td align="right">Bekreft Passord:</td>
    <td><asp:TextBox ID="ConfirmPassword" TextMode="Password"
    runat="server"></asp:TextBox>
    </td>
    <td></td>
    </tr>
    <tr>
    <td colspan="3">
    <asp:Label ID="FailureText" EnableViewState="false"
    runat="server" ></asp:Label>
    <asp:ImageButton ID="ChangePassword"
    CommandName="Submit" ImageUrl="~/Images/Go.gif" runat="server" />
    </td>

    </tr>
    </table>
    </ChangePasswordTemplate>
    </asp:ChangePassword>
     
    Jeff, Oct 13, 2008
    #1
    1. Advertisements

  2. Jeff

    Jeff Guest

    Ok I've solved it. I was missing the Successfull template, also the finish
    button had wrong configuration:

    Here is the button with the new configuration:
    <asp:ImageButton ID="ChangePasswordPushButton" CommandName="ChangePassword"
    ImageUrl="~/Images/Go.gif" runat="server" />
     
    Jeff, Oct 14, 2008
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.