Microsoft
70-515 · Question #51
You are implementing an ASP.NET page that hosts a user control named CachedControl. You need to ensure that the content of the user control is cached for 10 seconds and that it is regenerated when…
The correct answer is A. Modify the hosting page's caching directive as follows. C. Add the following caching directive to the hosted control. See the full explanation below for the reasoning.
Question
You are implementing an ASP.NET page that hosts a user control named CachedControl. You need to ensure that the content of the user control is cached for 10 seconds and that it is regenerated when fetched after the 10 seconds elapse. Which two actions should you perform? (Each correct answer presents part of the solution. Choose two.)
Options
- AModify the hosting page's caching directive as follows.
- BAdd the following meta tag to the Head section of the hosting page.
- CAdd the following caching directive to the hosted control.
- DAdd the following caching directive to the hosted control.
How the community answered
(49 responses)- A71% (35)
- B12% (6)
- D16% (8)
Community Discussion
No community discussion yet for this question.