Hello again,
Som more information about my caching question: I cache the user controls with <[EMAIL PROTECTED] Duration="30" VaryByParam="*" %> And the error comes when I try to pass a variable from the aspx page to the cached user control: Aspx page: left_menu.catID = catID User control "left_menu.ascx": Public catID as integer Gives the following error when the user control is cached: "System.NullReferenceException: Object reference not set to an instance of an object." How can I cache the user control and also pass it a variable? Helge _____ From: Helge Thomas Hellerud [mailto:[EMAIL PROTECTED] Sent: 21. desember 2004 23:58 To: [email protected] Subject: [AspNetAnyQuestionIsOk] User Controls and caching Hello, In one aspx page, I have several user controls. Some user controls are cached, and some are not (dependent on their jobs), and the aspx page is not cached. I get an error when I try to pass a variable from the aspx page to a cached user control. How can I cache and also pass a variable to a user control? Helge Yahoo! Groups Sponsor ADVERTISEMENT <http://us.ard.yahoo.com/SIG=1294nfurf/M=294855.5468653.6549235.3001176/D=gr oups/S=1705006764:HM/EXP=1103757914/A=2455397/R=0/SIG=119u9qmi7/*http:/small business.yahoo.com/domains/> click here <http://us.adserver.yahoo.com/l?M=294855.5468653.6549235.3001176/D=groups/S= :HM/A=2455397/rand=871440955> _____ 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] <mailto:[EMAIL PROTECTED] e> * Your use of Yahoo! Groups is subject to the Yahoo! <http://docs.yahoo.com/info/terms/> Terms of Service. [Non-text portions of this message have been removed] ------------------------ Yahoo! Groups Sponsor --------------------~--> $4.98 domain names from Yahoo!. Register anything. http://us.click.yahoo.com/Q7_YsB/neXJAA/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/
