Nee
Nee

Reputation: 1

asp.net DropDownList event not firing

I have a problem with a dropdownlist that doesn't seem to "notice" when the selected index has changed. On the form it looks something like this:

<asp:DropDownList ID="DDLResponsible" runat="server"></asp:DropDownList>

On the form there is another dropdownlist and when the selected index changes in that one, this one is reloaded using javascript. This works fine. But when i select an item from this list and press the save button on the form, the selected value just doesn't seem to change.

I tried using AutoPostback = true but that just made both lists reload to their original values.

If anyone understands what's going on, please please please explain in to me.

Upvotes: 0

Views: 483

Answers (2)

Azhar
Azhar

Reputation: 20680

It seems that if IsPostBack check is missing in Pageload event.... please check it or if not then please explain you question more.

Upvotes: 0

Andreas
Andreas

Reputation: 1311

Do you use Page.IsPostBack on Page.OnLoad? If you miss that it would cause this behavior..

Can you post more code?

Upvotes: 1

Related Questions