Cache, Cookies and Session Variables
Retrieve Information from Cache

Description
Retrieve Information from cache.
Variables
Applies to
Page class
Code
 
/// 
/// This method is called when a page is loaded.
/// 
private void RetrieveCache_MyPageLoad(object sender, System.EventArgs e) 
{

   if ( Cache["UpdatedRecordID"]!= null)
   {
        // Retrieve information from cache.
        string updatedRecordID = (string)Cache["UpdatedRecordID"];

        // Add business logic here.
    }
}
     
Applies to
CSharpPageConstructor class
Code
 
    // The following line will be inserted inside the
    // constructor for page class.
    this.Load += new System.EventHandler(RetrieveCache_MyPageLoad);  
     


  Privacy Statement