Click here to Skip to main content
15,881,812 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Dear Friends,

I have created registration page. Now am forgot my password, now i need to change my password using linkpath. Whenever click on forgot button i want receive change password link through mail. Now whenever click that link it will retrieve the UserId, UserName using User mail respected user detials on the form.

Please help me friends ASAP.

Thanks in advance.
Posted

 
Share this answer
 
Comments
Member 10021658 22-Aug-14 7:23am    
Thank your reply Yogesh.

In that example the user details send directly using mail, but my requirement is i have to send a link that user and that provid as UserId, UserName, Email also. now they can try to change their password.
Please use the following steps.

1. when you click on forgot password link display a form asking the user his user id.
2. Once he provides his userid then get his details from the database.
3. send a mail to the user with the link for change password.
4. When user click on the link display a form with his details.
 
Share this answer
 
Comments
Member 10021658 22-Aug-14 7:01am    
i have to display UserId, UserName, Email mandatory along with the link for respective user details.
And now i need to enter old password as well as new password also.
ChauhanAjay 22-Aug-14 7:04am    
In the change password link you will have pass the userid which is unique for each user.
Once he clicks the link with the help of this link you can display his details on the form with enter old password and new password and confirm password boxes
Member 10021658 22-Aug-14 7:06am    
There is no row at position 0.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IndexOutOfRangeException: There is no row at position 0.

Source Error:


Line 23: DataSet ds = new DataSet();
Line 24: sda.Fill(ds, "Registrion");
Line 25: lblId.Text = ds.Tables["Registrion"].Rows[0][0].ToString();
Line 26: da = new SqlDataAdapter(cmd);
Line 27: ds = new DataSet();



whenever try to click this link i got the error message.

the link is: http://localhost:1312/DemoExamples/Admin/ForgotPassword.aspx/3
ChauhanAjay 22-Aug-14 7:08am    
Can you paste your code for change password here
ChauhanAjay 22-Aug-14 7:11am    
http://localhost:1312/DemoExamples/Admin/ForgotPassword.aspx/3
is this the link you are sending in the email.

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