Search - Articles
DevASP.NET for ASP.NET, VB.NET, XML and C# (C-Sharp) Developers Tuesday, March 03, 2009
Dev Articles
Search Directory
ASP.NET
VB.Net
C-Sharp
SQL Server
 


Home >Search > Knowledge Base > ASP.Net > Caching


Search:
What's New - What's Hot
How to: Delete Items from the Cache in ASP.NET  Version: 0.00     Price: $0.00  
Total Hits: 67  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

Data in the ASP.NET cache is volatile — that is, it is not permanently stored. It might be automatically removed from the cache for one of these reasons:
* Because the cache is full.
* Because the item has expired.
* Because an item it is dependent on changes....

Caching in ASP.NET with the SqlCacheDependency Class  Version: 0.00     Price: $0.00  
Total Hits: 82  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

ASP.NET allows you to use the SqlCacheDependency class to create a cache item dependency on a table or row in a database. When a change occurs in the table or in a specific row, the item that has a dependency is invalidated and removed from the cache. You can set a dependency on a table in Microsoft SQL Server 7.0, SQL Server 2000, and SQL Server 2005. If you are using SQL Server 2005 you can also set a dependency on a specific record....

How to: Cache Versions of a Page Using Parameters  Version: 0.00     Price: $0.00  
Total Hits: 51  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

There are times when you want to cache a page, but the page might generate different output based on the value of a query string parameter or values sent with the page on postback. For example, if you have a page that shows locations of stores based on a user's state, the page might accept a "state" query string value that generates a different version of the page for each state....

How to: Cache Versions of a Page Using Requesting Browser  Version: 0.00     Price: $0.00  
Total Hits: 58  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

If your Web application contains a page that creates different output based on the type of the requesting browser, you can cache versions of page's output by the major version of the browser that requests the page. For example, when an Internet Explorer 6 browser requests a page, one version of the page is cached. When a Netscape Navigator browser, another version of Internet Explorer, or any other browser requests the page, another version of the page is added to the output cache....

How to: Cache Page Output with Cache Key Dependencies  Version: 0.00     Price: $0.00  
Total Hits: 48  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

At times, you might want to remove a page from the output cache when another item in the cache is removed. For example, you might have a page that displays a process-intensive report that is placed in the application cache and used by multiple pages. When the report is changed or is removed from cache, you want the page output to be removed from the cache also because the report is no longer valid. To do this you can make cached page output dependent on other cached items....

INFO: ASP.NET Caching Overview     
Total Hits: 78  |  Today: 0Author: Microsoft      Rating:  
Read Reviews | Write Review |  Your Rating: 

The ASP.NET cache is a general-purpose cache facility for Web applications. It provides both a simple interface for caching and a more advanced interface that exposes expiration and change dependency services.

Caching is an extremely important technique for building high-performance, scalable server applications. Some items that are expensive to construct can be built once and then used for some amount of time before they are considered invalid. These items are stored in memory where they...

How To Cache in ASP.NET by Using Visual Basic .NET     
Total Hits: 84  |  Today: 0Author: Microsoft      Rating:  
Read Reviews | Write Review |  Your Rating: 

This step-by-step article describes ways to control how ASP.NET caches Web pages and data objects. By caching, you avoid re-creating information when you make later requests. Caching is an important technique for building high performance and scalable server applications. In the first request for the page, you can store data objects, pages, or parts of the page in the memory. You can store these items on the Web server, on the proxy server, or on the browser....

How to perform output caching with Web services in Visual C# .NET     
Total Hits: 282  |  Today: 0Author: microsoft.com      Rating:  
Read Reviews | Write Review |  Your Rating: 

The following .NET Framework Class Library namespaces are referenced in this article:
• System.Web.Services
• System.Text
This step-by-step article describes how to create a sample ASP.NET Web service that uses output caching. Output caching caches the output response result of a Web service based on the Duration attribute that is specified for a corresponding WebMethod. Note In ASP.NET 2.0, the HTTP method of the test page has changed from GET to POST. However, POSTs are not ordinarily...

Caching: What, How and When     
Total Hits: 227  |  Today: 0Author: Josef Finsel      Rating:  
Read Reviews | Write Review |  Your Rating: 

Built into the Web server is a type of internal caching that takes frequently requested objects and stores them in memory. Let's say you have a logo that appears on all your pages. The first time a page is requested, the Web server reads the logo from disk and send it across the wire. But it also stores that image in memory. The next time a page requiring that logo is read, the server will supply the logo from memory (though it will still register the request to the log). Thus, the server determ...

HOW TO: Control Page Output Caching in ASP.NET Using Visual C# .NET (Q308375)     
Total Hits: 374  |  Today: 0Author: MSDN      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article demonstrates how to use the @ OutputCache directive to control page output caching in ASP.NET with Visual C# .NET. You can use this technique to cache your site's most frequently accessed pages, which can substantially increase your Web server's throughput. The throughput is commonly measured in requests per second. Although the sample code in this article demonstrates how to use the Duration and VaryByParam attributes, the article also includes a brief description of other approach...

HOW TO: Perform Fragment Caching in ASP.NET by Using Visual Basic .NET     
Total Hits: 443  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article demonstrates how to implement fragment caching in ASP.NET. Fragment caching does not actually cache a Web Form's code fragments directly; fragment caching refers to the caching of individual user controls (.ascx) within a Web Form. Each user control can have independent cache durations and implementations of how the caching behavior is to be applied. The sample code in this article illustrates how to achieve this functionality....

HOW TO: Implement Key-Based Dependencies for Data Caching in ASP.NET by Using Visual Basic .NET      
Total Hits: 385  |  Today: 0      Rating:  
Read Reviews | Write Review |  Your Rating: 

Use this step-by-step guide to implement key-based dependencies for data caching in an ASP.NET application.This example creates and inserts a DataSet object into a cache with a dependency set on another cache entry item by referencing its key. For additional information and examples of data caching with time-based or file-based dependencies, see the REFERENCES section in this article.
...

Dynamically Updating Portions of a Cached Page  Version: 0.00     Price: $0.00  
Total Hits: 110  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

Caching a page can dramatically increase the performance of a Web application. However, in some cases you need most of the page to be cached and some fragments within the page to be dynamic. For example, if you create a page of news stories that is entirely static for set periods of time, you can set the entire page to be cached. If you wanted to include a rotating ad banner that changed on every page request, then the part of the page containing the advertisement needs to be dynamic....

How to: Cache Versions of a Page Using Custom Strings  Version: 0.00     Price: $0.00  
Total Hits: 47  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

In addition to varying the output cache by browser type and parameters, you can cache multiple versions of page output based on different strings returned by a method that you define....

How to: Set a Page's Cacheability Programmatically  Version: 0.00     Price: $0.00  
Total Hits: 14  |  Today: 0Author: Microsoft Corporation      Rating:  
Read Reviews | Write Review |  Your Rating: 

The cacheability of a page or user control refers to whether a page can be cached on a device during the page's response life cycle. Devices that can cache a page include the browser making the request, the Web server responding to the request, and any cache-capable devices, such as proxy servers, that are in the request or response stream....

An ASP.NET page is stored in the HTTP.sys kernel cache in IIS 6.0 when the ASP.NET page generates an HTTP header that contains a Set-Cookie response     
Total Hits: 166  |  Today: 0Author: microsoft.com      Rating:  
Read Reviews | Write Review |  Your Rating: 

Consider the following scenario. A Microsoft ASP.NET page contains the %@ OutputCache % directive. Additionally, the ASP.NET page generates an HTTP header that contains a Set-Cookie response. In this scenario, the ASP.NET page is stored in the HTTP protocol stack (HTTP.sys) kernel cache in Microsoft Internet Information Services (IIS) 6.0. Therefore, multiple users who access the same page may receive identical cookies....

How To Perform Fragment Caching in ASP.NET by Using Visual Basic .NET     
Total Hits: 150  |  Today: 0Author: microsoft.com      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article demonstrates how to implement fragment caching in ASP.NET. Fragment caching does not actually cache a Web Form's code fragments directly; fragment caching refers to the caching of individual user controls (.ascx) within a Web Form. Each user control can have independent cache durations and implementations of how the caching behavior is to be applied. The sample code in this article illustrates how to achieve this functionality. Fragment caching is useful when you need to cache only ...

HOW TO: Implement Key-Based Dependencies for Data Caching in ASP.NET by Using Visual C# .NET     
Total Hits: 182  |  Today: 0Author: microsoft.com      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article demonstrates how to implement data caching by using key-based dependencies in a Microsoft ASP.NET application. The example that is presented in this article creates and inserts a DataSet object into the cache with a dependency set on another cache entry item by referencing its key. For examples of data caching with time or file-based dependencies, refer to the "References" section in this article....

HOW TO: Improve Performance by Caching Pages in ASP.NET     
Total Hits: 157  |  Today: 0Author: microsoft.com      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article demonstrates how to improve the performance of ASP.NET applications by caching entire ASP.NET pages with the @ OutputCache page directive. You can also the @ OutputCache page directive to cache specific portions of an ASP.NET page, though this article does not demonstrate this implementation....

How To Control Page Output Caching in ASP.NET by Using Visual C# .NET     
Total Hits: 158  |  Today: 0Author: microsoft.com      Rating:  
Read Reviews | Write Review |  Your Rating: 

This article demonstrates how to use the @ OutputCache directive to control page output caching in ASP.NET with Visual C# .NET. You can use this technique to cache your site's most frequently accessed pages, which can substantially increase your Web server's throughput. The throughput is commonly measured in requests per second. Although the sample code in this article demonstrates how to use the Duration and VaryByParam attributes, the article also includes a brief description of other approach...


1  2  Next >> 


Disclaimer - Privacy
© 2002-2017 DevASP.net