how to use caching in our program. why we use it give one
example in code
Answer / 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 |
What is variable in c#?
Can you change the value of a variable while debugging a C# application?
what is output parameter and parameter array?
What is difference between override and new in c#?
Explain partial class in c#?
What are custom exceptions in C#?
How to sign an assembly with strong name?
What is the difference between protected and internal in c#?
Are arrays immutable c#?
How can we set the class to be inherited, but prevent the method from being over-ridden?
Are c# references the same as c++ references?
What is a singleton unity?