Skip Navigation LinksHome > Categories > Code from a Category

Web caching in ASP.NET 2.0 (VB.NET)



User Name: codelecturer
Name: Mike Chauhan
Contact Me: www.datawebcoder.com/ContactUs.aspx
Home Page: www.datawebcoder.com
6 years of total IT experience including programming, application development, System Maintenance . 3 years of Experienced and expertise in .Net Framework VB, Visual Basic.Net, ASP.Net 2.0, 3.5 and AD... [More]
Viewed Times: 897
Add Date: 11/18/2012
In this article we will about Web caching in ASP.Net 2.0 (VB.Net).
Web caching technology in ASP.NET and VB.NET is helpful for popular website reducing its server workload and improving access times. This tutorial will show you how to use web caching save data to RAM, and improve data access times therefore.

First, import the namespace of System.Web.Caching
We are using Server Intellect and have found that by far, they are the most friendly, responsive, and knowledgeable support team we've ever dealt with!

Declare the variables

Define the method of AddItemToCache, it will use Cache.Add to add items to cache


Define the method of RemoveItemFromCache, it will use Cache.Remove to remove items from cache

When using the method of Cache.Remove , it will be leaded to invoke RemovedCallback method


Page_Load


The HTML of the web page


Happy Programming!!!

Post a Comment

Name: (Optional)
Email: (Optional, you can get an email if somebody replys your comments)*
Email me if somebody respons my comment below:
Details**:
Enter Text
as Below:
(case insensitive, if hard to read, click the "get a new one" button)
 
    
* Your email address will not be shared with any third parties for any reason.
** Maximum 1000 charactors.