how to use caching in our program. why we use it give one
example in code

Answer Posted / vijay

to increase web application performance caching is used,
caching may be categorised-output cahce,partial page or
data cahing.
<@outputcache duration="60" (in min) varyby param=q1;q1)
<@outputcache duration="60" (in min) varyby
control=dropdownlist1)

partial page -when a portion of page is to be keep track in
server memory for reusability frequently

data cahcing-
cache["dscache"]=ds //storing dataset inot cache
dataset objds=new dataset();
objds=(dataset)cache["dscache"] //to get into object dataset

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c# still popular?

560


What is use of a HashTable in .NET?

798


What is Assembly. and Describe type of assembly. why most developer happy with private assembly.

664


When is a class declared as a class abstract?

655


Which property do we set on a Combo Box to display data on it prior to setting the DataSource ?

619






if a base class has a number of overloaded constructors, and an inheriting class has a number of overloaded constructors; can you enforce a call from an inherited constructor to a specific base constructor?

602


How Is The Dll Hell Problem Solved In .net?

670


What is the difference between wrapper class and primitive?

533


What is a shared assembly?

632


Explain boxing and unboxing in c#?

593


Can abstract class have parameterized constructor?

585


What is extension method in c sharp?

558


What is anonymous types in c#?

586


Explain the difference between a sub and a function in c#.

626


What is int64 in c#?

573