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

List down the commonly used types of exceptions in .net

0 Answers  


How C# 4.0 supports dynamic programming language?

0 Answers  


What is the use of ispostback in c#?

0 Answers  


Is arraylist thread safe?

0 Answers  


Is array immutable in c#?

0 Answers  






Explain the term inheritance in C#.

0 Answers   Deloitte, JPMorgan Chase,


What is a value type in c#?

0 Answers  


What is the difference between virtual and override in c#?

0 Answers  


What's the difference between system.string and system.text.stringbuilder classes?

0 Answers  


How many bits is int32?

0 Answers  


How the versioning applies to Assemblies or can you explain version numbers?

0 Answers   CitiusTech,


Can you explicitly call a destructor?

0 Answers  


Categories