asp.net 4.0

How to use ASP.NET Membership class to validate users in C#

The Membership class provides a method for validating a membership user. If a user has entered his user name and password in a login mask, you can use the ValidateUser() method for programmatically validating the information entered by the user, as follows:

 

protected void LoginAction_Click(object sender, EventArgs e)

{

if (Membership.ValidateUser(UsernameText.Text, PasswordText.Text))

{

FormsAuthentication.RedirectFromLoginPage(UsernameText.Text, …

Learn more

How to use ASP.NET Membership class to retrieve users from the store in VB.NET

If you want to retrieve a single user and a list of users through the Membership class from the membership store, you can create a simple page with a GridView control for binding the users to the grid, as follows:

<html xmlns=”https://www.w3.org/1999/xhtml”>
<head runat=”server”>
<title>Display Users Page</title>
</head>
<body>
<form id=”form1″ runat=”server”>
<div>
<asp:GridView ID=”UsersGridView” runat=”server” DataKeyNames=”UserName” AutoGenerateColumns=”False”>
<Columns>
<asp:BoundField DataField=”UserName” HeaderText=”Username” />
<asp:BoundField DataField=”Email” HeaderText=”Email” />
<asp:BoundField DataField=”CreationDate” …

Learn more

How to use ASP.NET Membership class to retrieve users from the store in C#

If you want to retrieve a single user and a list of users through the Membership class from the membership store, you can create a simple page with a GridView control for binding the users to the grid, as follows:

<html xmlns=”https://www.w3.org/1999/xhtml”>

<head runat=”server”>

<title>Display Users Page</title>

</head>

<body>

<form id=”form1″ …

Learn more

How to use ASP.NET Membership CreateUserWizard control events in VB.NET

You can use the approach explained in the article How to use ASP.NET Membership CreateUserWizard control to create additional wizard steps. In this case you need to handle events and perform some actions within event procedures. For example if you are planning to collect additional information from the user with the wizard, you have to store …

Learn more

How to use ASP.NET Membership CreateUserWizard control events in C#

You can use the approach explained in the article How to use ASP.NET Membership CreateUserWizard control to create additional wizard steps. In this case you need to handle events and perform some actions within event procedures. For example if you are planning to collect additional information from the user with the wizard, you have to store …

Learn more

How to use ASP.NET Membership CreateUserWizard control

The CreateUserWizard control enables you to create registration pages very quickly. This control is a wizard control with two default steps:

1. For querying general user information.

2. For displaying a confirmation message.

As the CreateUserWizard inherits from the base Wizard control, and you add as many wizard …

Learn more