ASP.NET 2.0 Development Guide Note

xiaoxiao2021-04-07  397

Chapter 13 Personalized User Configuration

Because this chapter is related to custom user configuration items in PETSHOP. Special note.

One,

Personalized user configuration includes user-defined interface appearance, location, content, arrangement, etc.

Personalized service three steps:

Identify user identity. Common methods: Create a user information table in the database to obtain the user's input to confirm that the user identity is legal.

Provide a personalized service experience. Divided into registered user services and anonymous users, registered users can get the largest personalized service.

Store user configuration information. Store user modification information.

3 major functions of personalized service:

Personalized user configuration.

Web parts. Web components include a range of new server controls: WebPartManager, WebPartzone, Editorzone, Catelogzone, Connectionzone

Members and roles management. Implementation by 3 ways: a. Use the new series login control, b. Implement site management user management, c. Implement members and role management functions.

two,

Personalized user configuration features: You can implement the configuration information with a single user, and store information with persistence. Understanding this concept 4 points

The configuration information can be any information related to the user. The stored configuration information can be any data type object. A single user can be a registered user or an anonymous user. Persistence Storage uses SQL databases and does not need to create and maintain the database itself, which is automatically completed by ASP 2.0.

Configuration Section: is Web.config, Rofile> There are two child nodes and .

Properties Configuration Section is used to define multiple user configuration properties and property groups. Define the name of the attribute, according to the type, value. The Providers Configuration Section is used for the configuration provider used by the function, including the provider name, data type, connection character, and the like.

转载请注明原文地址:https://www.9cbs.com/read-132564.html

New Post(0)