ASP.NET Security Tutorials

How does Windows authentication work in ASP.NET

When you create a web application for a smaller set of known users who already have Windows user accounts you can use a solution named Windows authentication as authentication system. The solution matches web users to Windows user accounts that are defined on the local computer or another domain on the network.

Windows authentication isn’t …

Learn more

How to use ASP.NET Membership class to validate users in VB.NET

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 Sub LoginAction_Click(sender As Object, e As EventArgs) Handles LoginAction.Click

If Membership.ValidateUser(UsernameText.Text, PasswordText.Text) Then

Learn more

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