Home All Groups Group Topic Archive Search About
Author
29 Dec 2005 9:06 PM
Steve
I am caching a user control for an hour, based on a certain property. When
the page first loads the page is cached just fine. However, whenever I close
the browser screen and then go back into it I get the following error:  
Object reference not set to an instance of an object.   Does anyone have any
ideas?

The cache directive in the .aspx page:
<%@ OutputCache Duration="3600" VaryByControl="Category" VaryByParam="*" %>

Properties set of the control in the .aspx page:

' The error:  "Object reference not set to an instance of an object." 
occurs in the first line below.
ctrlEditScreen.Category = category
ctrlEditScreen.FieldDefinitionsDatasource = MyDatasource         
ctrlEditScreen.UserName = MyName

Any help is greatly appreciated!

AddThis Social Bookmark Button