单项选择题
A. Roles.CreateRole(listName);User.InInRole(listName);
B. Roles.CreateRole(listName);Roles.AddUserToRole(useName, listName);
C. Roles.RoleExists(listName);Roles.AddUserToRole(useName, listName);
D. Roles.RoleExists(listName);User.InInRole(listName);
单项选择题 You create a Web site with membership and personalization enabled. You must use an existing CRM database for storing the membership information. You need to implement the Membership Provider. What should you do? ()
多项选择题 You create a Web Form. The Web Form allows users to recover their passwords. You add a PasswordRecovery server control by using the following code segment.You need to ensure that the server control generates a new password and sends it by e-mail to the users e?mail address. Which two actions should you perform?()
多项选择题 You are developing a Web application. The Web application restricts access to an administrative page. The Web application uses the following code segment to protect the page.if (Page.User.Identity.Name != @"CONTOSO\Administrator") { the page, you are redirected to Login.aspx. You discover that the User.Identity.Name property is not being correctly populated. You need to ensure that you can access the page when you are logged on as Administrator. Which two actions should you perform? ()