Creating a new user
Here we see how to create a new user in asp.net. Now create a web form name CreateUserWizardExample.aspx and put a CreateUserWizard control. We use this control for easily create user. Here I place the control very simple. But you can customize it as you need. After create a user, you can see successful message and a link to go to home page.
If you face any problem with password, then you use a strong password because asp.net requires strong password for this default setting. Here I use this password Mejenny1@
Note: you need to configure a provider for store your data. Use Web Site Administration Tool for easily configure it.
If you face any problem with password, then you use a strong password because asp.net requires strong password for this default setting. Here I use this password Mejenny1@
Note: you need to configure a provider for store your data. Use Web Site Administration Tool for easily configure it.
CreateUserWizardExample.aspx
<%@ Page Language="C#" %>
<!DOCTYPE html>
<script runat="server">
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>CreateUserWizard example: how to create user in asp.net</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:CreateUserWizard
ID="CreateUserWizard1"
runat="server"
ContinueButtonType="Link"
ContinueButtonText="Go to home page"
ContinueDestinationPageUrl="~/Home.aspx"
>
</asp:CreateUserWizard>
</div>
</form>
</body>
</html>
Home.aspx
<%@ Page Language="C#" %>
<!DOCTYPE html>
<script runat="server">
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>CreateUserWizard example</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<h1>Home Page</h1>
</div>
</form>
</body>
</html>



