473,783 Members | 2,352 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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:ChangePass word ID="ChangePassw ord1" runat="server">
<ChangePassword Template>
<table style="backgrou nd-color:#bbccee;" >
<tr>
<td align="right">N åværende Passord:</td>
<td><asp:TextBo x ID="CurrentPass word" TextMode="Passw ord"
runat="server"> </asp:TextBox></td>
<td>
<asp:RequiredFi eldValidator ID="valRequireU sername"
SetFocusOnError ="true"
Display="Dynami c"
ControlToValida te="CurrentPass word" runat="server"
ErrorMessage="N åværende passord er nødvendig"
ValidationGroup ="ChangePasswor d1" >*</asp:RequiredFie ldValidator>
</td>
</tr>
<tr>
<td align="right">N ytt Passord:</td>
<td><asp:TextBo x ID="NewPassword " TextMode="Passw ord"
runat="server"> </asp:TextBox>
</td>
<td></td>
</tr>
<tr>
<td align="right">B ekreft Passord:</td>
<td><asp:TextBo x ID="ConfirmPass word" TextMode="Passw ord"
runat="server"> </asp:TextBox>
</td>
<td></td>
</tr>
<tr>
<td colspan="3">
<asp:Label ID="FailureText " EnableViewState ="false"
runat="server" ></asp:Label>
<asp:ImageButto n ID="ChangePassw ord"
CommandName="Su bmit" ImageUrl="~/Images/Go.gif" runat="server" />
</td>

</tr>
</table>
</ChangePasswordT emplate>
</asp:ChangePassw ord>
Oct 13 '08 #1
1 2351
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:ImageButto n ID="ChangePassw ordPushButton" CommandName="Ch angePassword"
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
7191
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) Then response.write(err.number) End If
2
3066
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: MinRequiredPasswordLength As far as I understood this property should control automatically length of of new password that was inputed by user in the control. But it didn't do it. For example, I defined MinRequiredPasswordLength=3, but I succeed to input and...
1
1521
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 convert type 'ASP.changepassword_aspx' to 'System.Web.UI.WebControls.ChangePassword' public changepassword_aspx() { Line 121: string dependencies;
1
1496
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 validate I have the ability to check if the user should be forced to change the password on their next logon or not. The problem is where can I check this inorder to force the user to change the password. For instance I want to make sure that they...
1
1195
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
1130
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 View's index. So after the password is changed the success view comes up. I click continue and go back to a gridview I have displaying all of the users. If the admin user clicks on any member in the grid I redisplay the changepassword control. The...
1
1741
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 use this control by handing events? If I can't show the failure message on demand it's kind of useless. Paul
2
7667
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 PasswordRecovery with a Password reset required; a temporary password is sent to the account on file. I want an extra layer of security to accommodate the very unlikely contingency that someone's e-mail account is compromised. Challenging with the...
0
957
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 executed. I set CommandName to Submit, I thought that should be correct (as PasswordRecovery uses Submit)? <asp:ImageButton ID="ChangePassword" CommandName="Submit" ImageUrl="~/Images/Go.gif" runat="server" />
0
9643
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10313
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10147
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7494
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6735
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4044
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2875
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.