HighTechTalks DotNet Forums  

asp.net user control caching

ASP.net Caching microsoft.public.dotnet.framework.aspnet.caching


Discuss asp.net user control caching in the ASP.net Caching forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Steve
 
Posts: n/a

Default asp.net user control caching - 11-15-2005 , 07:40 PM






Hello. I know user controls can be cached by a form variable. But can it
still be cached if the form variable is created through the page_load event.
I'm asking the question because I'm having trouble getting this to work. Is
my code below created correctly? Thanks in advance for looking at this!

------------------------------------------------------
Here is the outputcache statement in my ascx page:
------------------------------------------------------

<%@ outputcache Duration="6000" VaryByParam="hdnViewCategory" %>

------------------------------------------------------
Here is the Page_Load event:
------------------------------------------------------

Page.ClientScript.RegisterHiddenField("hdnViewCate gory",
Me._Category.ToString)



Reply With Quote
  #2  
Old   
Steve
 
Posts: n/a

Default RE: asp.net user control caching - 11-15-2005 , 08:48 PM






I also forgot to mention.... I am using asp.net 2.0 (RC version)
--
Steve


"Steve" wrote:

Quote:
Hello. I know user controls can be cached by a form variable. But can it
still be cached if the form variable is created through the page_load event.
I'm asking the question because I'm having trouble getting this to work. Is
my code below created correctly? Thanks in advance for looking at this!

------------------------------------------------------
Here is the outputcache statement in my ascx page:
------------------------------------------------------

%@ outputcache Duration="6000" VaryByParam="hdnViewCategory" %

------------------------------------------------------
Here is the Page_Load event:
------------------------------------------------------

Page.ClientScript.RegisterHiddenField("hdnViewCate gory",
Me._Category.ToString)



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.