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.)

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.)

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 0

Your email address will not be published. Required fields are marked *