ViewState problem when adding a panel to a panel
I've got a Panel panel1 and a Panel panel2. panel2 contains a custom Data-Bound control, which enherits from DropDownList. The control contains some values from the database which can be selected.
I want to add panel2 to panel1:
Now, if I select a value in the custom control and I do a PostBack, the value isn't selected anymore. If I DON'T add panel2 to panel1 and I do a PostBack, the value is still selected.
Does anyone know why the value isn't selected anymore if I add panel2 to panel1? Maybe something goes wrong with the viewstate if I add panel2 to panel1?