PrepAway - Latest Free Exam Questions & Answers

Which two actions should you perform?

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 correctanswer presents part of the solution. Choose two.)

PrepAway - Latest Free Exam Questions & Answers

A.
Modify the hosting page’s caching directive as follows.
<%@ OutputCache Duration=”10″ VaryByParam=”None” %>

B.
Add the following meta tag to the Head section ofthe hosting page.
<meta http-equiv=”refresh” content=”10″>

C.
Add the following caching directive to the hostedcontrol.
<%@ OutputCache Duration=”10″ VaryByParam=”None” %>

D.
Add the following caching directive to the hostedcontrol.
<%@ OutputCache Duration=”10″ VaryByControl=”None” %>


Leave a Reply