G
Guest
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!
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!