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 is clr in c#?
What is writeline in c#?
How big is an int16?
Why do we use static methods in c#?
Which is faster list or dictionary in c#?
What is a nullreferenceexception?
Differentiate between method overriding from method overloading with its functionality?
Why we use extension methods in c#?
What is difference between managed and unmanaged code?
What is typeof c#?
What is jagged array in c#?
What is xaml file in c#?
What is a console operator?
how to Create a datagridview control with check box column with 8rows in it, the maximum number of check boxes checked should be 3, when user checks the 4th corresponding message should be displayed and check box should be checked. User can uncheck the checked boxes Note: read-only property should not be used
What are partial types in c#?