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


Please Help Members By Posting Answers For Below Questions

Can you explicitly call a destructor?

530


How is method overriding different from overloading?

557


What is dataadapter c#?

478


What is the purpose of private constructor in c#?

546


What is the delegates in c#?

504






What is toint32 c#?

618


Does c# support multiple inheritance (mi)?

526


What do you mean by sealed classes and static classes?

531


Whats an assembly? Describe the importance of assembly?

495


What are cshtml files?

486


What is garbage collection? How to force garbage collector to run?

494


What is view model in c#?

460


Can an interface extend a class c#?

506


Explain the serialization in .net

546


What is assembly version series sequence?

538