2010-04-15 2 views
2

프로필, <퍼센트의 @의 OutputCache를의 %> 사용자 정의 캐시 프로필과 관련된에서 CacheProfile 속성이있는 훌륭한 도구가구성 OutputCache를 한 곳에서 영문 페이지 'OutputCache를 구성하려면

<caching> 
     <outputCacheSettings> 
     <outputCacheProfiles> 
      <add name="myProfile" duration="300" /> 
     </outputCacheProfiles> 
     </outputCacheSettings> 
    </caching> 

그리고 행 :

<%@ OutputCache CacheProfile="myProfile" VaryByParam="None" %> 

가하는 의 Web.config에 정의 직업. 그러나 ascx 사용자 컨트롤에 대해 동일한 작업을 수행하는 방법은 무엇입니까? CacheProfile이 < % @ OutputCache %>에 없음 : S 해결 방법이 있습니까? 감사합니다. . http://msdn.microsoft.com/en-us/library/hdxfb6cy.aspx에서

답변

0

:

"어느 쪽이든 당신은 ASP.NET 페이지 및 사용자 컨트롤에 @ OutputCache 지시문을 사용할 때 파서 오류가 발생 당신이 그것을 포함하지 않을 경우이 속성 (VaryByParam 특성) 또는 VaryByControl을 속성이 필요합니다. . "

관련 문제