Maybe i want to do this the wrong way.
I have a page with a button and a panel.
I click the button and a user control is loaded using the LoadControl function. The user control is added to the panel.
The user control has a button, when i click this button from within the user control, I want to remove the user control from the panel.
Button - which loads a control and adds it to the panel
Panel - the user control get added to this control
button - when clicked, I want it to unload/remove the user control from the panel.
How can I do this?