Click here to Skip to main content
15,745,232 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to change the password by supplying old password and how to match newpassword and confirm password are same or not
Posted
Comments
Sandeep Mewara 9-May-12 9:00am    
You have just flooded the forum with your 'How to's without making any effort. Avoid it please.

You can use ASP.NET in built Controller to validate matching password

on button click you have to check whether old password is match or not

if old password match then you can change password Using sql query

and for matching password you can use ASP.NET CompareValidator....

Code for Match password...

XML
Password:  <asp:TextBox id="TextBox1" runat="server"  TextMode="Password"></asp:TextBox>

Confirm Password: <asp:TextBox id="TextBox2" runat="server" TextMode="Password"></asp:TextBox>



            <asp:CompareValidator id="CompareValidator1"

             runat="server" ErrorMessage="Passwords do not match!"

             ControlToValidate="TextBox2"

             ControlToCompare="TextBox1" ></asp:CompareValidator>
 
Share this answer
 
use query string for matching the old and new password.....
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900