![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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) |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |