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
What are the Configuration files in .net?
Is javascript harder than c#?
What is the difference between namespace and class?
Can a dictionary have duplicate keys c#?
What are constants in c#?
What is the use of static members with example using c#.net.
How do you declare a variable in c#?
Is boxing an implicit conversion?
Explain the Different types of configuration files in .net?
What is dll in c#?
What is the advantage of dependency injection?
Why hashtable is thread safe in c#?
Are objects passed by reference in c#?
What is the purpose of abstract class in c#?
What is toint32 c#?