🎴 Flashcard Mode

ASP.NET and C# Web Development Fundamentals

Card1 / 19
Mastered0
Review0
QuestionClick to flip

How do enable output cache for an ASP.Net page?

AnswerClick to flip back
A
<%@ OutputCache Duration="60" %>
💡 Explanation:

The @ OutputCache directive enables page-level output caching in ASP.NET. The Duration attribute specifies how long (in seconds) the page output should be cached. This directive must be placed at the top of the .aspx page to control server-side caching behavior.

Change Mode