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 is variable in c#?

0 Answers  


Can you change the value of a variable while debugging a C# application?

1 Answers  


what is output parameter and parameter array?

1 Answers   TCS,


What is difference between override and new in c#?

0 Answers  


Explain partial class in c#?

0 Answers  


What are custom exceptions in C#?

0 Answers   Arigo Infotech,


How to sign an assembly with strong name?

0 Answers   CitiusTech,


What is the difference between protected and internal in c#?

0 Answers  


Are arrays immutable c#?

0 Answers  


How can we set the class to be inherited, but prevent the method from being over-ridden?

0 Answers  


Are c# references the same as c++ references?

0 Answers  


What is a singleton unity?

0 Answers  


Categories