473,287 Members | 1,447 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,287 software developers and data experts.

trouble with ChangePassword control

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>
Oct 13 '08 #1
1 2324
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" />
Oct 14 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Blake | last post by:
Windows 2000 Active Directory, IIS 5 ASP code looks like this: Set oUser = GetObject("WinNT://DOMAIN/" & strNTName) oUser.ChangePassword strPassword, strNewPassword If (err.number <> 0)...
2
by: Evgeny | last post by:
Hello, I use in ChangePassword web control. The control is connected with a Membership provider that I also has defined. Particularly, there is such property in the provider:...
1
by: javatopia | last post by:
Hello! I have a web page named "ChangePassword.aspx", which works just wonderful on my developer machine. When I deploy it to the server, though, I get: Compiler Error Message: CS0030: Cannot...
1
by: chris | last post by:
I need to force a user to a ChangePassword screen after they have requested there password. I am using a custom MembershipProvider and overriding the Validate user event. After the user has been...
1
by: nick | last post by:
I enable the administrators role to change password of other logins. Should I use asp:ChangePassword? It seems it's used to change current logon's password?
0
by: davidr | last post by:
Hi, I am having a weird problem with the change password control. Unlike the createwizard control that creates new users and passwords, the changepassword control has no way of setting the...
1
by: PJ6 | last post by:
Setting e.Cancel = true on the ChangingPassword event, fired from a ChangePassword control, does not show its failure message. Do I have to use a MembershipProvider, or is there a way to simply...
2
by: Ken Fine | last post by:
I want to add the security question and answer security feature to the ChangePassword control. I am aware that this functionality is built into the PasswordRecovery tool. I have implemented the...
0
by: Jeff | last post by:
hi I've added the markup below in the ChangePasswordTemplate, I thought that when I hit the ImageButton the password would change, but nothing happpens. Even RequiredFieldValidators isn't...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.