Saturday, April 27, 2013

ASP.NET Interview Questions: - Show Post Cache substitution?


This is one of the asked ASP.Net Interview Questions during the Interview by the Interviewer.

Post cache substitution is used when we want to cache the whole page but also need some dynamic region inside that cached page. Some examples like QuoteoftheDay, RandomPhotos, and AdRotator etc. are examples where we can implement Post Cache Substitution.

Post-cache substitution can be achieved by two means:


  • Call the new Response.WriteSubstitution method, passing it a reference to the desired substitution method callback.

  • Add a <> control to the page at the desired location, and set its methodName attribute to the name of the callback method.



Learn more on ASP.NET interview questions

Regards,

From more on author’s blog related to ASP.NET interview questions click and visit.

No comments: