Page 1 of 1

Custom control properties resetting after refresh

Posted: 15 Sep 2008, 11:01
by endev8003
I have a custom control (.ascx) imbedded in a webpage. The control has 3 dropdown. The third dropdown is populated according to the selected values of the first two.

Each dropdown sets a public property on the control when the value changes.

When I select the first control, it sets the linked property. Then I select the second dropdown. The second property is set correctly, but the first property resets to the default value. The selected item in the dropdowns doesn't change when the page refreshes.

I'm also getting default values when reading the controls properties from the webpage.

Does anyone know what is happening and how to prevent it?