如何实施更改密码表单 [英] How Do I Implement A Change Password Form

查看:105
本文介绍了如何实施更改密码表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





i我试图实现一个接受新密码并在C#中确认密码的表单,但我现在遇到的问题是我不知道怎么样呢。



这是我在d数据库中写的sql代码:



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:

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.

推荐答案

如果你不知道如何通过电子邮件地址为 ChangePassword 表格,请参阅:传递数据Betwe en表格 [ ^ ]
If you don't know how to pass email address to ChangePassword form, please see this: Passing Data Between Forms[^]


您的问题并不清楚您想要做什么。要了解从表单获取密码的基础知识,请阅读以下问题的答案:

更改密码的C#代码? [ ^ ]

更改密码WinForm C# [ ^ ]

如何做我使用C#进行密码更改 [ ^ ]



虽然这些文章中的代码可能无法完全按照您的要求进行,但这是一个好地方 开始。在您编写了自己的代码后,如果遇到问题,您可以随时在这里提出具体问题。请务必在遇到问题的地方加入代码行,并提供问题的详细说明。
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.


这篇关于如何实施更改密码表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆