I will describe my problem through a simple example for reasons to be easily understood.

I've a c# webform page, in which contains two DropDownList, respectively, named "CbxState" and "CbxCity", there are also a Submit button. All controls are inside a UpdatePanel.

How I want that it works:

1) User select CbxState, then SelectedIndexChanged is fired("AutoPostBack=True"), CbxCity is bind.

2) User select CbxCity value, then post the page.

The Problem:

When user submits the page, CbxCity value will always be the first in the index. Selected value is not maintained. I tried using "EnableViewState = True" without success. It's weird because every time the user clicks to send the page, CbxState_SelectedIndexChanged event is fired.

Any suggests?

Related posts

Recent Viewed