Can any one tell me if I want to cache the User control,
Where does it cached?
I am not able to it in "Cache" object
ThanksThe easiest way to configure caching for user controls (.ascx files)
is with the "OutputCache" directive that goes at the top of the .ascx
page. Look up OutputCache in google.
You can configure: Where it's cached, how long, whether or not it's
shared between multiple .aspx pages, and for whom it gets cached.
There's even a "custom" option for more control.
There are also properties and methods that can be set a runtime, but
the OutputCache directive (setting declaratively at design time) is
the easy way.
Hope that helps.
0 comments:
Post a Comment