如何在C#中使用密码恢复工具 [英] How to use password recover tools in C#

查看:74
本文介绍了如何在C#中使用密码恢复工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过用户恢复密码...使用密码恢复工具..我正在使用代码







< asp:PasswordRecovery ID =PasswordRecovery1runat =serverBackColor =#F7F6F3

BorderColor =#E6E2D8BorderPadding =4BorderStyle =SolidBorderWidth =1px

字体名称=Verdana字体大小=大

宽度=532pxOnSendingMail =PasswordRecovery1_SendingMail>

< maildefinition from =raj2511984@gmail.comsubject =Forgetton Passwordpriority =High>



< ; instructiontextstyle font-italic =Trueforecolor =Black>

< successtextstyle font-bold =Trueforecolor =#5D7B9D>

< textboxstyle font-size =Medium>

< usernametemplate>





忘记密码



用户名:< asp:TextBox ID =UserNamerunat =服务器

Width =236px> < asp:Button ID =SubmitButtonrunat =server

Text =SENDCommandName =提交/>




< asp:Li teral ID =FailureTextrunat =server>





< br $> b $ b

< questiontemplate>

忘记密码



你好< asp:Literal ID =UserNamerunat =server>


请回答您的密码问题:


< asp:Literal ID =问题 runat =server>

< asp:TextBox ID =Answerrunat =server>


< asp:Button ID = SubmitButtonrunat =serverText =通过邮件发送答案

CommandName =提交/>


< asp:Literal ID = FailureTextrunat =server>



< successtemplate>

您的密码已发送到您的电子邮件地址

< asp:Label ID =EmailLabelrunat =server>



< TitleTextStyle BackColor =#5D7B9D Font-Bold =True字体大小=0.9em

ForeColor =白色/>

< submitbuttonstyle backcolor =#FFFBFFbordercolor = #CCCCCCborderstyle =Solid>

BorderWidth =1pxFont-Names =Verdana字体大小=0.8em

ForeColor = #284775/>






how to recover password by a user...using password recover tool.. im using code



<asp:PasswordRecovery ID="PasswordRecovery1" runat="server" BackColor="#F7F6F3"
BorderColor="#E6E2D8" BorderPadding="4" BorderStyle="Solid" BorderWidth="1px"
Font-Names="Verdana" Font-Size="Large"
Width="532px" OnSendingMail="PasswordRecovery1_SendingMail" >
<maildefinition from="raj2511984@gmail.com" subject="Forgetton Password" priority="High">

<instructiontextstyle font-italic="True" forecolor="Black">
<successtextstyle font-bold="True" forecolor="#5D7B9D">
<textboxstyle font-size="Medium">
<usernametemplate>


Forgot Password


UserName: <asp:TextBox ID="UserName" runat="server"
Width="236px"> <asp:Button ID="SubmitButton" runat="server"
Text="SEND" CommandName="Submit" />


<asp:Literal ID="FailureText" runat="server">




<questiontemplate>

Forgot Password


Hello <asp:Literal ID="UserName" runat="server">

Please answer your password question :

<asp:Literal ID="Question" runat="server">
<asp:TextBox ID="Answer" runat="server">

<asp:Button ID="SubmitButton" runat="server" Text="Send Answer By Mail"
CommandName="Submit"/>

<asp:Literal ID="FailureText" runat="server">

<successtemplate>
Your password has been sent to your email addres
<asp:Label ID="EmailLabel" runat="server">

<TitleTextStyle BackColor="#5D7B9D" Font-Bold="True" Font-Size="0.9em"
ForeColor="White" />
<submitbuttonstyle backcolor="#FFFBFF" bordercolor="#CCCCCC" borderstyle="Solid">
BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em"
ForeColor="#284775" />



推荐答案

您可能需要启用密码恢复。



关注以下2个链接,它将帮助您:



http://msdn.microsoft.com/en-us /library/vstudio/ms178335(v=vs.100).aspx [ ^ ]



http://www.asp .net / web-forms / tutorials / security / admin / recovering-changes-changes-cs [ ^ ]
May be you need to enable password recovery.

follow these 2 links and it will help you :

http://msdn.microsoft.com/en-us/library/vstudio/ms178335(v=vs.100).aspx[^]

http://www.asp.net/web-forms/tutorials/security/admin/recovering-and-changing-passwords-cs[^]


这篇关于如何在C#中使用密码恢复工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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