Click here to Skip to main content
15,892,927 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

i am trying to implement a form that accepts new password and confirms the password in C#, but the problem am having now is i don't know how to go about it at all.

This is the sql code i wrote in d database:

SQL
UPDATE [User] SET [Password] = pPassword
WHERE Email=pEmail;


A previous form accepts email address, so i want to use the email that has been inputted from the previous form in the form that reset password.

Kindly help out,

Thanks.
Posted
Comments
[no name] 7-May-14 15:01pm    
And what is it exactly that you need help with?
Member 10658074 7-May-14 15:11pm    
Hi,
I need ideas on how to implement the form. am using a three tier architecture, i tried implementing it from a past project and its not giving any error, its saying successfully updated but its not changing in the database.
[no name] 7-May-14 15:45pm    
Okay... you tried implementing what? There is nothing in your posting that indicates that you have tried anything at all.

If you don't know how to pass email address to ChangePassword form, please see this: Passing Data Between Forms[^]
 
Share this answer
 
It is not clear from your question exactly what you want to do. To learn the basics of getting a password from a form read the answers to these questions:
C# code for change password?[^]
Change Password WinForm C#[^]
How Do I Make Password Change Using C#[^]

While the code in these articles may not do exactly what you want it is a good place to start. After you have written some code of your own, if you get stuck, you should feel free to ask specific questions here. Be sure to include the lines of code where you are having the problem as well as providing a detailed description of your issue.
 
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