Hi Friends
Explain the use of duration attribute of @OutputCache page directive.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Mar 4, 2012, 10:44 PM
@outputcaching used cache asp.net page or user control.
Duration is time in second that the page or usercontrol is cached. rhis attribute is required. it gives complation error if it not passed.
hope this help.
Satyapriya NayakPosted Mar 3, 2012, 11:06 PM
The Duration parameter specifies how long, in seconds, the HTML output of the Web page should be held in the cache. When the duration expires, the cache becomes invalid and, with the next visit, the cached content is flushed, the ASP.NET Web page's HTML dynamically generated, and the cache repopulated with this HTML.
Thanks