单项选择题
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?()
A. Modify the connection string in the Web.config file to connect to the CRM database.
B. Add new a SqlMembershipProvider to the Web.config file.
C. Create a custom Membership Provider inheriting from MembershipProvider.
D. Create a custom MembershipUser inheriting from MembershipUser.
相关考题
-
单项选择题
You are using the ASP.NET membership APIs to manage user accounts for a Web site. The Web.config file contains the definition for the membership provider. After modifying the Web.config file to enable password recovery, you create a PasswordReset.aspx file.? You need to enable users to reset their passwords online. The new passwords must be sent to them by e-mail after they have logged on through the Login.aspx page. In addition, users must be required to answer their secret questions before resetting their passwords. Which code logic should you use?()
A. Add a PasswordRecovery element to the PasswordReset.aspx file and configure it.
B. Modify the Page_Load to set the Membership.EnablePasswordReset to True in the PasswordReset.aspx file.
C. Add a ChangePassword element to the PasswordReset.aspx file and configure it.
D. Modify the Login.aspx form to include a Required Field validator on the secret question answer text box. Then redirect users to the PasswordReset.aspx file. -
单项选择题
You deploy your companys Internet Web site. You need to deny anonymous access to the Web site, allowing only authenticated users. Which code segment should you use?()
A.
B.
C.
D. -
多项选择题
You create a Web site. You add an EditorZone control to the home page on the Web site. You need to enable users to customize the size and location of the Web Parts on their home pages. Which two controls should you add to the EditorZone control?()
A. BehaviorEditorPart
B. AppearanceEditorPart
C. PropertyGridEditorPart
D. LayoutEditorPart
