Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

what are windows services?

1038


Can constructor be overloaded in c#?

913


What is Dependency of Injection?

1006


Explain static class members.

1107


Does c# do array bounds checking?

1024


Are cao stateful in nature?

965


Is there an equivalent of exit() for quitting a c# .net application?

1008


Explain concurrency with aop?

1027


Structs are not reference types. Can structs have constructors?

1011


What is querystring in c#?

966


What is a nullreferenceexception?

1075


Which compiler switch creates an xml file from xml comments in the files in an assembly?

1050


What is singleordefault?

948


Can a abstract class have a constructor?

931


Is array value type in c#?

1080