asp.net 4.0

How to manage ASP.NET membership Login control appearance

The ASP.NET membership Login control provides several properties you can use to manage its appearance. For example you can use the different style settings supported by the Login control as follows:

 

<form id=”form1″ runat=”server”>

<div align=”center”>

<asp:Login ID=”LoginCtrl” runat=”server” BorderColor=”Blue” BorderStyle=”Solid” BorderWidth=”1px”

Font-Bold=”True” Font-Names=”Arial Narrow” Font-Size=”Medium” TextLayout=”TextOnTop”

OnAuthenticate=”LoginCtrl_Authenticate”>

<LoginButtonStyle BackColor=”Silver” ForeColor=”Black” />

Learn more

ASP.NET Membership login control

The Login control simplifies the creation of a login page for forms authentication in conjunction with the membership API. It provides you with a ready-to-use user interface that queries the user name and password from the user and offers a Log In button for logging the user in. The next picture presents the Login control in action:

Learn more

ASP.NET Membership security controls in ASP.NET

ASP.NET ships with several controls you can use in your ASP.NET pages that simplify the process of creating login pages. These controls rely on the underlying forms authentication and the membership API infrastructure. The next table describes security controls that ship with ASP.NET and summarizes their typical usage scenarios:

 

Control

Primary usage

Login

The …

Learn more

How to find the correct version of Aspnet_regsql.exe

You can find Aspnet_regsql.exe in the Microsoft.NET Framework directory. If the computer is running multiple .NET Framework versions side-by-side, multiple versions of the tool might be installed. The next table lists the locations where the tool is installed for different versions of the .NET Framework.

Version of .NET Framework
Location of Aspnet_regsql.exe file

.NET Framework version 2.0/3.0/3.5 (32-bit systems)
%windir%\Microsoft.NET\Framework\v2.0.50727

.NET Framework …

Learn more

How to create a data store as a step of Membership API in ASP.NET

When you are planning to implement membership API in production environment, you should create membership database manually. ASP.NET ships with SQL scripts that allow you to manually create the necessary database and database tables required for storing user and role information used by the membership API. ASP.NET also ships with a tool that creates these database …

Learn more

How to configure Forms Authentication as a step of Membership API in ASP.NET

The membership API is based on top of forms authentication. It provides you with an out-of-the-box infrastructure for managing and authenticating users. For that reason, you have to configure your application for forms authentication as a first step. Usually, the the root directory of the web application grants access to anonymous users, while restricted resources are …

Learn more