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
Can you explicitly call a destructor?
How is method overriding different from overloading?
What is dataadapter c#?
What is the purpose of private constructor in c#?
What is the delegates in c#?
What is toint32 c#?
Does c# support multiple inheritance (mi)?
What do you mean by sealed classes and static classes?
Whats an assembly? Describe the importance of assembly?
What are cshtml files?
What is garbage collection? How to force garbage collector to run?
What is view model in c#?
Can an interface extend a class c#?
Explain the serialization in .net
What is assembly version series sequence?