Introduction to login controls in ASP. NET 2.0

Source: Internet
Author: User

Many new functions and controls are added in asp.net 2.0. Among them, the New Login control makes the WEB application design more handy. What is a login control? This is the user registration, login, and password that we usually use in WEB applications. Different pages are displayed based on different permissions after logon, now we can use the provided controls in asp.net 2.0. There are many login controls in ASP. NET 2.0, which encapsulate a series of functions for system login in most WEB applications. This article will briefly introduce their main functions.
First, in asp.net 2.0, a new membership framework is introduced to facilitate the creation and management of users and password protection for pages in Web applications. The new framework includes new features for processing authentication and authorization, which can meet the needs of Web site administrators and developers at the same time. The Web site administrator can use the new Web site management tool to create new users and roles, and control access to pages in Web applications. A Web site management tool is a set of pre-compiled ASP. NET pages. Users with no programming skills can use it to configure Web applications. With the membership API, programmers can easily use the Drag Control Method and use a small amount of code to fully manage users and role permissions, you can also customize the extension.
The membership framework contains two default user verification programs: the default AccessMembershipProvider and SqlMembershipProvider. If you want to store member identity information in the Microsoft SQL Server database, you can configure the application to use SqlMembershipProvider. If you want to use the access database, use AccessMembershipProvider. You can also create a custom membership provider. For example, if you want to store member identity information in an XML file or an Oracle database and want to create your own member identity Provider, You need to implement all the methods and attributes of the abstract class MembershipProvider. In this article, the access database is used as an example to describe, so Accessmembershipprovider is used.
We can use the WEB Site Security Configuration tool that comes with asp.net 2.0 to automatically create a database that stores user role identities without programming. For example, you need to create an access database that stores user names, passwords, password prompts, user emails, and other information. This can be achieved through the web Site Security Configuration tool. The procedure is as follows:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.