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

Which property of the textbox cannot be changed at runtime?

658


What is interface inheritance in c#?

699


What is generic collection in c#?

674


what is the difference between a struct and a class in c#?

785


Explane each and every methods of nterface Queue? Explain About performance issues on retrieving records

801


What are delegates and why are they required?

700


What is c# windows form application?

695


Is equal in c#?

672


How does a while loop work?

650


How do you inherit a class into other class in c#?

674


What is append in c#?

640


How will you deploy the dll file in gac?

682


Is c# slower than java?

657


Why do we use abstraction in c#?

652


Why do we need dependency injection in c#?

668