ASP.NET Caching Question:
Download Job Interview Questions and Answers PDF
Explain Page Output Caching?
Answer:
This type of caching is implemented by placing OutputCache directive at the top of the .aspx page at design time.
For example:
<%@OutputCache Duration= "30" VaryByParam= "DepartmentId"%>
The duration parameter specifies for how long the page would be in cache and the VaryByParam parameter is used to cache different version of the page.
The VaryByParam parameter is useful when we require caching a page based on certain criteria.
For example:
<%@OutputCache Duration= "30" VaryByParam= "DepartmentId"%>
The duration parameter specifies for how long the page would be in cache and the VaryByParam parameter is used to cache different version of the page.
The VaryByParam parameter is useful when we require caching a page based on certain criteria.
Download ASP.NET Caching Interview Questions And Answers
PDF
Previous Question | Next Question |
Explain advantages of Caching? | What is Page Fragment Caching? |