在asp.net C#中忘记密码的代码? [英] code for forgot password in asp.net C# ?

查看:89
本文介绍了在asp.net C#中忘记密码的代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要一个代码忘记密码asp.net与C#

i want to need a code for forgot password asp.net with C#

推荐答案

参考:

忘记密码的代码 [ ^ ]

http://www.dotnetspider.com/forum/15536​​1-how-write- code-forgot-password.aspx [ ^ ]

这可能有所帮助。
Refer:
Code for forgot password[^]
http://www.dotnetspider.com/forum/155361-how-write-code-forgot-password.aspx[^]
This may help.


忘记密码背后的主要逻辑如下所示





一般来说,您需要检查唯一值以检索密码。像用户名/电子邮件ID。当用户输入此项时,您在数据库中检查该值。如果数据库中存在该值,您将向他们提供原始密码,甚至您可以重置密码并将其发送给他们。







Well the main logic behind forgot password is like below


generally you need to check the unique value to retrive the password. like username / email id. when user enter this you check that value in Database. if that value exists in the database you will provide them the origional passoword or even you can reset the password and send it to them.



string Emailaddress = "abc@gmail.com";
string Query = "select * from tbl_user where username = Emailaddress";
if(Row > 0)
{
   Record found (write your logic here); 
}
else 
{ 
  No  record found (write your logic here);
}


这篇关于在asp.net C#中忘记密码的代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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