web 2.0

ASP.NET(vb.net) & PasswordRecovery

ASP.NET(vb.net) & PasswordRecovery - The PasswordRecovery control allows user passwords to be retrieved based on the e-mail address that was used when the account was created. The PasswordRecovery control sends an e-mail message containing a password to the user.

ShotDev Focus:
- ASP.NET(vb.net) & PasswordRecovery

ASP.NET(vb.net) & PasswordRecovery

ASP.NET(vb.net) & PasswordRecovery

Example

Login.aspx


<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Login.aspx.vb" Inherits="Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:LoginView ID="LoginView1" runat="server">
<AnonymousTemplate>
Please Login <br />
<asp:Login ID="Login1" runat="Server" DestinationPageUrl="Login.aspx"
PasswordRecoveryUrl="ResetPassword.aspx" PasswordRecoveryText ="Reset Password" />
</AnonymousTemplate>
<LoggedInTemplate>
Welcome [<asp:LoginName ID="LoginName1" runat="server" />] , <asp:LoginStatus ID="LoginStatus1" runat="server" />
</LoggedInTemplate>
</asp:LoginView>
</div>
</form>
</body>
</html>

Login.aspx.vb


Partial Class Login
Inherits System.Web.UI.Page

End Class

ResetPassword.aspx

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="ResetPassword.aspx.vb" Inherits="ResetPassword" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>ShotDev.Com Tutorial</title>
</head>
<body>
<form id="form1" runat="server">
<div>

<asp:PasswordRecovery ID="PasswordRecovery1" runat="server">
</asp:PasswordRecovery>

</div>
</form>
</body>
</html>

ResetPassword.aspx.vb


Partial Class ResetPassword
Inherits System.Web.UI.Page

End Class

Screenshot

ASP.NET(vb.net) & PasswordRecovery

Click Reset Password.

ASP.NET(vb.net) & PasswordRecovery

Input username for a reset.

ASP.NET(vb.net) & PasswordRecovery

Input a Answer.

ASP.NET(vb.net) & PasswordRecovery

Your password has been send to you.

ASP.NET(vb.net) & PasswordRecovery

The new password sending to email.

ASP.NET(vb.net) & PasswordRecovery

Login Form.

ASP.NET(vb.net) & PasswordRecovery

.
.
.
Download this script.
Download

1 Star2 Stars3 Stars4 Stars5 Stars6 Stars7 Stars8 Stars9 Stars10 Stars (No Ratings Yet)
Loading ... Loading ...

Leave a Reply

You must be logged in to post a comment.