caching

  • Thread starter Thread starter Vikas Kumar
  • Start date Start date
V

Vikas Kumar

Hi am using usercontrols in my application
like header and footer and some other
i want to do cashing on them
how will i do that i mean
will i have to write
<%5@outputcache......
on my user control i want to do caching for 1 hr
what will be the exact statement that i will write on my user controls
 
<%@ OutputCache Duration="#ofseconds"
Location="Any | Client | Downstream | Server | None |
ServerAndClient "
Shared="True | False"
VaryByControl="controlname"
VaryByCustom="browser | customstring"
VaryByHeader="headers"
VaryByParam="parametername"
CacheProfile="cache profile name | ''"
NoStore="true | false"
SqlDependency="database/table name pair | CommandNotification"
%>
 
Back
Top