OK, here goes...
We have a page that includes a datagrid. This datagrid includes a linkcolumn that, when clicked, sets session variables that will tell the page to add the usercontrol upon reload. So the instruction to add the control to the placeholder is contained in the onItemCommand handler for the linkcolumn.
When the link is clicked, the session variables are properly populated, and the usercontrol is created. Stepping through the code, it even brings back from the database everything that is needed. However, any control on the page (Panels, LinkButtons, Literals, etc.) are not instantiated and of course we receive a "Null Reference Exception" error when we try to assign values to them.
What are we missing here??
We have a page that includes a datagrid. This datagrid includes a linkcolumn that, when clicked, sets session variables that will tell the page to add the usercontrol upon reload. So the instruction to add the control to the placeholder is contained in the onItemCommand handler for the linkcolumn.
When the link is clicked, the session variables are properly populated, and the usercontrol is created. Stepping through the code, it even brings back from the database everything that is needed. However, any control on the page (Panels, LinkButtons, Literals, etc.) are not instantiated and of course we receive a "Null Reference Exception" error when we try to assign values to them.
What are we missing here??