OuputCache has to be added to each page manually, not the MasterPage. On Wed, Nov 19, 2008 at 5:44 AM, Venkatu <[EMAIL PROTECTED]> wrote:
> > hi > > i got this error > > The directive 'outputcache' is not allowed in this page. when i add > this line to the Master page > > <%@ OutputCache Duration="60" CacheProfile="profile" %> to the page.. > > I have created one webproject so i am going to add the caching > > this is the code i have added in web.config file > > <system.web> > <caching> > <outputCacheSettings> > <outputCacheProfiles> > <add name="profile" duration="60" enabled="true" varyByParam="*" /> > </outputCacheProfiles> > </outputCacheSettings> > </caching> > </system.web> > > In each web page > <%@ OutputCache Duration="60" CacheProfile="profile" %> > > pls give the solution soon ? and here i am using varbyparam="*" this > means > > wat ,.actually wat it does..? is there any wrong in the code.... > > this is the code i am going to upload to my server .. > > so let anyone tell this is correct .. or any changes to do...? > > and also tell how to find whether the page is cached or not ie: on > online... > > Thanks
