Problems with a user control
I am designing a calendar user control (I am aware one exists, it doesn't have enough functionality) in ASP.NET, but I am having problems accessing its public properties when it is instantiated.
To create the calendar, I programattically create a table during the Page_Load event. When each cell is added to the table, it is also added to a Hashtable so that I can easily access it later.
The properties I am having problems with access these hashtables.
The problem I am having is this: While I can use these properties sucessfully from within the control itself (for example, in the Page_Load event after the calendar is created), when I try to access these same properties from the page using the control, it fails with this error:
System.NullReferenceException: Object variable or With block variable not set.
I can post code if necessary. Thanks in advance.
|