What does the Substitution Control does?

Friday, March 11, 2011

The Substitution control specifies a section on an output-cached Web page that is exempt from caching.


1.www.codecollege.NET 2.http://www.interviewsguru.com 3.The Encylopedia of Web Sites 4.Blogging and Earning

Does Post Cache Substitution disables dynamic Caching?

Yes. It dynamically disables public (or client) caching and switches the page to use server caching. This is because the substitutions need to happen via server-side logic.


1.www.codecollege.NET 2.http://www.interviewsguru.com 3.The Encylopedia of Web Sites 4.Blogging and Earning

How will you implement Post Cache Substitution?

It can be implemented in 2 methods:
1. Call the new Response.WriteSubstitution method, passing it a reference to the desired
substitution method callback.
2. Add a control to the page at the desired location, and set its
methodName attribute to the name of the callback method.


1.www.codecollege.NET 2.http://www.interviewsguru.com 3.The Encylopedia of Web Sites 4.Blogging and Earning

What is Post Cache substitution?

It implements a dynamic region within a cached page.
Ex: In AdRotator entire page will be cached but a new ad will be displayed on every request.


1.www.codecollege.NET 2.http://www.interviewsguru.com 3.The Encylopedia of Web Sites 4.Blogging and Earning

Can we post and access view state in another application?

If you post to other applications, PreviousPage property will be null.


1.www.codecollege.NET 2.http://www.interviewsguru.com 3.The Encylopedia of Web Sites 4.Blogging and Earning

LinkWithin

Blog Widget by LinkWithin

Recommended Books