Wrox ASP.NET 2 Beta Preview Study Section 3

xiaoxiao2021-03-06  14

Chapter 7 Themes uses * .skin and * .css files to make unified deployments for the appearance of Page. There is no Skin file in the New Item list, use the text file, the suffix name is modified to .skin, and add the time attribute programming in <% @ Page /> to resolve the page.Theme = Request.QueryString ("XXX ') Performs Processing Programming Solving the THEME of Control, using the control.skinid property in the page.preinit event.

Chapter 8 MEMBERSHIP AND ROLE Management Authentication, Authorization, Authorization, Certification, Is there a permission, whether it is a legal user Authorization, authorization, giving user power, averaged web site, using Authentication Mode = "Forms" to perform FORM level user verification, also Just if there is no login, then you need to log in to the CreateUserWizard Server Control Complete the Account Login Server Control Complete the account login operation Login Status Server Control, displaying whether it is already logged in, click on this Server Control, you can log out or Arrival login interface Use the method and attributes in the Membership class and the authentication of account information, and the management of account settings. The static method of the FormSauthorization class provides account information management tools, manipulating the Authentication Ticket Loginname Displays the current login account UserName ChangePassword Server Control provides Change Password. Interface and function PasswordRecovery Server Control provides interfaces for password failures and feature LoginView Server Control providing template editing, logging in to the account, can provide different interface display information about Role and the user's operation, for example Add USER to Role, enumerate the User in the role, remove user, etc. from the Role, use the ROLES class to operate

Chapter 9 Personalization Personalized Data, the original method has session, cookie, but it is not very good, it is not convenient, it takes a lot of programming, now ASP.NET 2.0 uses Profile and Web.config Profile method, very convenient To say, under the System.Web node in the web.config file, declare Profile, declare Properties under Profile, under Properties, use add to join the Profile information you need to control, simple looks as follows: < anonymousIdentification enabled = "true" /> can be written in the WebSite menu by manually writing code in the web.config file Select the ASP.NET Configuration project to enter the ASP.NET Web Application Configuration Management Terminal Configuration Step 2, use the PROFILE class in the program to operate the Properties set in the web.config file The above two steps can be viewed by the MSDN's Profile Class. You can view the corresponding help Chapter 10 Portal Framework and Web Part Part You can only have manager to complete the interface by PageMenu to complete the interface. Standard's CONTROL can also be placed This part in zone is a new part of the added part of the interface configuration function.

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

New Post(0)