单项选择题
You create a Web site that stores users' active themes in user profile objects. You need to apply users' preferred themes when they log on to the Web site.
What should you do? ()
A. In the InitComplete event handler, set the Theme property of the Page object based on the user profile.
B. In the PreLoad event handler, set the Theme property of the Page object based on the user profile.
C. In the OnLoad event handler, set the Theme property of the Page object based on the user profile.
D. In the PreInit event handler, set the Theme property of the Page object based on the user profile.
相关考题
-
多项选择题
You create Web sites for your company. You apply a consistent design to the pages and controls of the Web sites. You need to make style changes to all of the Web sites on the Web server. You want to achieve this goal without having to edit the individual pages on each Web site. Which two actions should you perform?()
A. Place a theme in the App_Themes directory under the application root directory.
B. Place a theme under an ASP.NETClientFiles folder under the ASP.NET installation directory.
C. Assign a theme by setting the <%@ Page Theme="..." %> directive to the name of the application theme.
D. Assign a theme by specifying the <pages theme="..."/> section in the Web.config file. -
单项选择题
You want to enable users of a Web application to modify the Web applications UI and behavior. These modifications must be maintained at the user level so that when users return to the Web application, the changes are still in effect. You need to achieve this goal by using the minimum amount of custom code. What should you do?()
A. Persist control data by using view state.
B. Use Web Part controls.
C. Maintain a profile for each user.
D. Enable session state on the Web application. -
单项选择题
You have a Web application that is configured for personalization. You need to access personalization data from one of the pages of the Web application by using the minimum amount of administrative effort. What should you do? ()
A. Access the personalization data from the Session property of the HttpContext object.
B. Access the personalization data from the Application property of the HttpContext object.
C. Access the personalization data from the Cache property of the HttpContext object.
D. Access the personalization data from the Profile property of the HttpContext object.
