Skip to main content

Posts

Caching:Varying the Output Cache By Parameter in ASP.NET

OutPutCacheByPrameter.aspx <%@ Page Language="C#" AutoEventWireup="true" CodeFile="OutPutCacheByPrameter.aspx.cs" Inherits="OutPutCacheByPrameter" %>   <! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >   < html xmlns ="http://www.w3.org/1999/xhtml" > < head runat ="server" > < title > Caching; Varying the Output Cache By Parameter </ title > </ head > < body > < form id ="form1" runat ="server" > < div > < asp:GridView ID ="grdEmployee" runat ="server" AutoGenerateColumns ="False" ShowHeader ="False" > < Columns > < asp:HyperLinkField DataTextField ="EmpName" DataNavigateUrlFields ="EmpId" DataNavigateUrlFormatString ="E
Recent posts

What is Caching in ASP.NET.

What is Caching? Caching is a technique of persisting the data in memory for immediate access to requesting program calls. Many in the developer community consider caching as one of the features available to improve performance of Web applications. Why Caching? Consider a page that has list of Employee name, contact numbers and mail-Ids of existing employees of a company on an intranet accessible by all employees. This is very useful information that is available throughout the company and could also be one of the most accessed pages. The functionality of adding, updating or deleting is usually less intensive compared to more transaction-based systems like Purchase ordering, Voucher creation etc. Now in a normal scenario the process of querying database for each request is not cost-effective in terms of server resources, hence is lot better to cache or persist the data to avoid this costly loss of resources. The .NET Advantage ASP.NET provides the flexibility in te