how to use caching in our program. why we use it give one
example in code



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

Post New Answer

More C Sharp Interview Questions

What problem does Delegate Solve?

0 Answers   MindCracker,


What is before string in c#?

0 Answers  


What is disconnected data architecture in c#?

0 Answers  


What does string intern do?

0 Answers  


Is dictionary reference type c#?

0 Answers  






How do I enforce const correctness in c#?

0 Answers  


What is namespace in oops?

0 Answers  


Classes and structs can be declared as static, is this statement true or false?

0 Answers  


What is default access modifier for class in c#?

0 Answers  


Is null or empty in c#?

0 Answers  


What is c# most used for?

0 Answers  


Why do we still see so much non-oo code written in c# today?

0 Answers  


Categories