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
Is c# still popular?
What is use of a HashTable in .NET?
What is Assembly. and Describe type of assembly. why most developer happy with private assembly.
When is a class declared as a class abstract?
Which property do we set on a Combo Box to display data on it prior to setting the DataSource ?
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?
How Is The Dll Hell Problem Solved In .net?
What is the difference between wrapper class and primitive?
What is a shared assembly?
Explain boxing and unboxing in c#?
Can abstract class have parameterized constructor?
What is extension method in c sharp?
What is anonymous types in c#?
Explain the difference between a sub and a function in c#.
What is int64 in c#?