web 2.0

ASP.NET(vb.net) & CreateUserWizard

ASP.NET(vb.net) & CreateUserWizard - The CreateUserWizard control collects information from potential users. By default, the CreateUserWizard control adds the new user to the ASP.NET membership system.

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

ASP.NET(vb.net) & LoginStatus

ASP.NET(vb.net) & CreateUserWizard

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"
CreateUserUrl="~/Register.aspx" CreateUserText="Register" />
</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

Register.aspx

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

<!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:CreateUserWizard ID="CreateUserWizard1" runat="server">
<WizardSteps>
<asp:CreateUserWizardStep runat="server" />
<asp:CompleteWizardStep runat="server" />
</WizardSteps>
</asp:CreateUserWizard>

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

Register.aspx.vb


Partial Class Register
Inherits System.Web.UI.Page

End Class

Screenshot

ASP.NET(vb.net) & CreateUserWizard

Click a Register.

ASP.NET(vb.net) & CreateUserWizard

Input information for new account.

ASP.NET(vb.net) & CreateUserWizard

Created Suscessfully.

ASP.NET(vb.net) & CreateUserWizard

Test login.

ASP.NET(vb.net) & CreateUserWizard
.
.
.
Download this script.
Download

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

One Response to “ASP.NET(vb.net) & CreateUserWizard”

  1. 1interracial…

Leave a Reply

You must be logged in to post a comment.