In visual Studio 2017 I am making a login form and reset password form. Within t
ID: 3714377 • Letter: I
Question
In visual Studio 2017 I am making a login form and reset password form. Within the login form, which is a partial class of the main program (partial class: form/class), there is a public constant for the master password. In the reset password form i want to overwrite/overrode the masterPass in the login form to a new password in a retypeTextBox for the new password. Then the new password will be the new master password, even after exiting the program. In visual Studio 2017 I am making a login form and reset password form. Within the login form, which is a partial class of the main program (partial class: form/class), there is a public constant for the master password. In the reset password form i want to overwrite/overrode the masterPass in the login form to a new password in a retypeTextBox for the new password. Then the new password will be the new master password, even after exiting the program.Explanation / Answer
<configuration>
...
<system.net>
<mailSettings>
<smtp deliveryMethod="Network" from="your email">
<network
host="smtp.example.com"
userName="username"
password="password"
port="25" />
</smtp>
</mailSettings>
</system.net>
</configuration>
In c#
protected void RecoverPwd_SendMail(object sender, MailMessageEventArgs e)
{
e.Message.CC.Add("your email");
}
In aspx
Your password has been reset, <%UserName%>!
According to our records, you have requested that your password be reset. Your new
password is: <%Password%>
If you have any questions or trouble logging on please contact a site administrator.
Thank you!
In html
<html>
<body>
<h2>Your Password Has Been Changed!</h2>
<p>
This email confirms that your password has been changed.
</p>
<p>
To log on to the site, use the following credentials:
</p>
<table>
<tr>
<td>
<b>Username:</b>
</td>
<td>
<%UserName%>
</td>
</tr>
<tr>
<td>
<b>Password:</b>
</td>
<td>
<%Password%>
</td>
</tr>
</table>
<p>
If you have any questions or encounter any problems logging in,
please contact a site administrator.
</p>
</body>
</html>
That's it I have shown a partial method like how to do . Just gonna it
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.