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

How do you secure a webservice?

1 Answers   TCS,


What is callback delegate in c#?

0 Answers  


What is sqldatareader c#?

0 Answers  


Why do we use reflection in c#?

0 Answers  


What is the difference between a field and a property in c#?

0 Answers  






what are the advantages of c# over vb.net?

10 Answers   Choice Solutions, HCL, Practical Viva Questions,


What is jit? What are the different types of jit?

0 Answers  


how can we pass parameters to a user control using delegates ?

1 Answers   IBM,


What are All kind of access specifiers for a class and for methods

0 Answers  


How objects are stored in memory?

0 Answers  


Can we inherit static class in c#?

0 Answers  


What are the properties of string?

0 Answers  


Categories