Hi,
I am using Wilson Master Pages for the layout of my web app.  I created
a Layout.ascx file that has the layout defined for all the pages, a left
side menu bar that spans the whole length of the page, that has TreeView
web control and content part of the page "Main".
The Page_Load method of this user control always runs with every page.
I am trying to cache this control so that page_load event does not need
to run for all the pages.
Whenever I add:
<%@ OutputCache Duration="300" VaryByParam="None" %>
in the user control and then run the project I get an error saying that
I need to define Content with ContendID "Main"  in the page I am trying
to access.  If I remove that cache tag, then everything works fine.
Can anyone who is familiar with MasterPages please tell me what I am
doing wrong and how to cache the usercontrol?
I am eagerly waiting for your reply.
Thanks.
Raj.
 


[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
---------------------------------------------------------------------~->

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
     [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 

Reply via email to