Saturday, March 24, 2012

UpdatePanel and DropDownList with AutoPostBack=true

Using Atlas January CTP

I can't get a DropDownList with AutoPostBack=true to work inside an UpdatePanel. Is that a known limitation? Any solution/workaround?

The AutoPostBack does not work; the Web page does not post back.

Thanks.What do you mean that the Web Page does not postback? Are you saying that you can't get the client-callback to work for your DDL within the UpdatePanel? It works fine for me and others on this forum. Can we see you code?

I managed to get this to work. I had to:

1. Change my UpdatePanel mode to "Conditional"

2. Add a trigger like:

<atlas:ControlEventTriggerControlID="ddlMyDropDown"EventName="SelectedIndexChanged"/>


Thanks for taht post I was having the same problem with Atlas March CTP.
This should be in the dowcumentation.
I will blog about this.
Hey Duede theres is not Such Property atlas:ControlEventTrigger Please Help with the Solution i am trying to update 2nd dropdown list from 1st dropdown list
Try this:

<atlas:ControlValueTrigger ControlID="DropDownList1" PropertyName="SelectedValue" /
Put this under the <trigger> tag, which should be under the update panel for the 2nd dropdown list.

No comments:

Post a Comment