Im building a medium sized app where I have on one page 3 dropdown boxes which I fill with data from a repeater

I have a method which we can call "SetDpD" which fetch data from db and bind to dropdowns. This method is called ONCE, and that is on page_Load in the if not page.ispostback control statement

I have a button which uses the selected items to show a result.

Now the wierd thing, when the button_click event fires I check the selecteditem.value and it is the first item in the dropdown. It is like that every time I select some values and press the button.

I thought I was insane... so I checked enableviewstate, and it was true, then I put a breakpoint on the SetDpD method and it was executed ONCE when the page was loaded, not any more.


SO, my question is, what is it that can cause my dropdowns to loose their viewstate when I press the button? I don't manipulate the controls any more in the code unless upon page load


kind regards
henrik