.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

What is the use of OutputCache

Posted By:      Posted Date: October 05, 2010    Points: 0   Category :ASP.Net

<%@ OutputCache Location="None" VaryByParam="None" %>


Because when am using this line in http then the attachment is opening fine but not for https.

But after removing this line then https is working fine.

Can anyone explain?

View Complete Post

More Related Resource Links

Problem with OutputCache


Hi all

I am trying to use

<%@ OutputCache Duration="120"  VaryByParam="none" SqlDependency="Quib_VideoGallery:Quib_VideoGallery_Video" %>

at my page but i am getting error

The 'Quib_VideoGallery:Quib_VideoGallery_Video' SqlDependency attribute for OutputCache directive is invalid.

Detailed error message: Cannot find the 'Quib_VideoGallery' database in the configuration.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: The 'Quib_VideoGallery:Quib_VideoGallery_Video' SqlDependency attribute for OutputCache directive is invalid.

Detailed error message: Cannot find the 'Quib_VideoGallery' database in the configuration.

I implemented all its required by reading from internet:

  • This is my Web.config

Configuring outputcache of Ghosted Page Layouts


We have many page layouts which are deployed in the "12" folder of MOSS and are Ghosted into the BD by MOSS.

We are going through the step of configuring the cache on the site collection and we want to set specific Cache Profiles to certain Page Layouts.

If we do it via the Master Page Gallery, the Page Layouts are "unghosted" and therefore disconnected from the copy on disk.  We cannot deploy them with WSP and we receive this error when trying to open a page again :

The attribute 'autoeventwireup' is not allowed on this page.

After applying the Reset Page Site Definition : see  http://blogs.msdn.com/b/jjameson/archive/2009/11/08/autoeventwireup-issue-in-moss-2007.aspx

The pages are working again...

We then tried to do it the "ASP.NET" putting this directly in the ASPX page layouts after the


@ Page

OutputCache with SqlDependency


I'm new to the asp.net forum, so Hello!

After doing some research, I arrived at the conclution that the best caching method for my needs is the built in OutputCache of asp.net. I saw that this directive includes a SqlDependency option and that has a CommandNotification option. Looking in to that, I found only talk of SQL Server 2005.

Has this option been deprecated?

Is there a better option?

What I'm looking to do is cache a page as long as the underlying data has not been changed. I'm using SQL Server 2008 R2 as the backend to the site.

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend