-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: dnyanesh
Message 2 in Discussion

  Hi All, 
Ques:What is Post Cache Substitution ? 
Ans: Post-Cache Substitution  
ASP.NET 2.0 now supports post-cache substitution, which allows you to configure 
a section in a page as non-cacheable. Therefore, although the page is cached, 
parts of it will be re-processed when the page is requested again. For example, 
you can create a cached page with mostly static content but that displays the 
user's name in a Label control. Without post-cache substitution, the user name 
would remain the same for all requests. With post-cache substitution, you can 
mark the page as cacheable and put the Label control inside another control 
marked as not cacheable. The user name will then refresh each time the page is 
requested 
  
AdRotator Support for Post-Cache Substitution
Although it is possible to insert dynamic content from user code as 
demonstrated in the examples above, the most common way that page developers 
will access post-cache substitution behavior is through ASP.NET server controls 
that implement direct support for it. For example, the ASP.NET AdRotator 
control implements support for post-cache substitution in order to render 
unique Advertisements on each request, regardless of whether the parent page is 
cached.  
<%@ OutputCache Duration="60" VaryByParam="none" %> 
<form runat="server">
  <asp:AdRotator AdvertisementFile="Ads.xml" runat="server"/>
</form> 
Internally, the AdRotator creates a standalone in-memory object with a single 
callback method that can render Ad content, to be passed as the delegate to the 
Response.WriteSubstitution method. This render object retains enough context 
for each of the AdRotator's user defined properties to be able to generate Ads 
independently of the page. 
 
Regards,
Dnyaneshwar Parkhe.

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDOTNET/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to