Guest User

Guest User

  • Tech Writer
  • 271
  • 32.9k

change password in asp.net using Entity Framework

Jul 29 2020 6:02 AM
Can someone help me...
 
how do I implement change password firstly it checks old password matches and then update new password in database in asp.net Using entity Framework..
 
below is my design code..
  1. <div class="col-md-12 col-sm-12 col-xs-12 user-login-box">  
  2. <table class="style1">  
  3. <tr>  
  4. <td>Current Password:</td>  
  5. <td>  
  6. <asp:TextBox ID="TxtCrntPswd" runat="server"></asp:TextBox>  
  7. </td>  
  8. </tr>  
  9. <tr>  
  10. <td>New Password:</td>  
  11. <td>  
  12. <asp:TextBox ID="TxtNwPswd" runat="server"></asp:TextBox>  
  13. </td>  
  14. </tr>  
  15. <tr>  
  16. <td>Confirm New Password:</td>  
  17. <td>  
  18. <asp:TextBox ID="TxtCnPswd" runat="server"></asp:TextBox>  
  19. </td>  
  20. </tr>  
  21. </table>  
  22. </div>  
  23. <asp:Button ID="BtnPswd" runat="server" Text="Save" OnClick="BtnPswd_Click" />  
  24. <asp:Label ID="lbl_msg" Font-Bold="True" BackColor="#FFFF66" ForeColor="#FF3300" runat="server" Text=""></asp:Label><br /><br />  
  25. <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Profile.aspx">Login</asp:HyperLink>  
  26. </div>  
  27. </div>  

Answers (21)