You must add a new custom control to an .aspx page in your Web application, with these requirements: • The state of the custom control must remain static for 2 minutes • The cache settings of other elements on the page must not be affected by the settings for the new custom control Which code will meet the requirements when added to the Web.configfile?

- Online Exam Test Papers | - MCQs[multiple choice questions and answers ] | - Mock Test Papers | - Practice Papers | - Sample Test Papers |

Question:
You must add a new custom control to an .aspx page in your Web application, with these requirements: • The state of the custom control must remain static for 2 minutes • The cache settings of other elements on the page must not be affected by the settings for the new custom control Which code will meet the requirements when added to the Web.configfile?

1.<caching> <outputCacheSettings> <outputCacheProfiles> <ProfileCache profile="CachedProfileSet" varyByControl="CachedControl" duration="2"> </ProfileCache> </outputCacheProfiles> </output

2.<caching> <outputCacheSettings> <outputCacheProfiles> <ProfileCache profile="CachedProfileSet" varyByControl="CachedControl" duration="120"> </

3.<caching> <outputCacheSettings> <outputCacheProfiles> <addname="CachedProfileSet" varyByParam="CachedControl" duration="2" /> </outputCacheProf

4.<caching> <outputCacheSettings> <outputCacheProfiles> <addname="CachedProfileSet" varyByControl="controlname" duration="120" /> </outputCachePr


More MCQS Questions and answers

R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!