2012年微软认证考试备考的朋友,为了能让大家找到更多的复习资料,微软认证考试网特搜集了有关2012年微软认证考试辅导资料,帮助大家复习,祝大家考试顺利
QUESTION 21
You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You add a Web page named HomePage.aspx in the application. The Web page contains different controls.
You add a newly created custom control named CachedControl to the Web page.
You need to ensure that the following requirements are met:
The custom control state remains static for one minute The custom control settings do not affect the cache settings of other elements in the Web page What should you do?
A.Add the following code fragment to the Web.config file of the solution.
B.Add the following code fragment to the Web.config file of the solution.
C.Add a class named ProfileCache that inherits from the ConfigurationSection class to the HomePage.aspx.cs page.
Add the following to the Web.config file of the solution.
D.Add a class named ProfileCache that inherits from the ConfigurationSection class to the HomePage.aspx.cs page.
Add the following code fragment to the Web.config file of the solution.
Answer: A