Saturday, March 24, 2012

UpdatePanel and a listbox

I have an UpdatePanel wrapping a RadioButton control and a ListBox control; depending on which RadioButton is selected, I'll also have either another ListBox control or a TextBox control displayed within the UpdatePanel. All of that works fine. Depending on what the user selects in the first DropDown control, I'm populating another ListBox control outside the UpdatePanel with either Carriers, Members or Providers; that part also works fine, but then I hit a snag. Even though the ListBox outside of the UpdatePanel gets populated, none of the items are displayed unless the entire page is posted back to the server ... something which I'm trying to avoid. Is there any other way to force the ListBox to display those items without performing a postback for the entire page?

I'm reasonably sure that that listbox has to be in an updatepanel to get the behavior you're looking for.


paul.vencill:

I'm reasonably sure that that listbox has to be in an updatepanel to get the behavior you're looking for.

Paul,

I ended up putting the listbox to be populated with either Carriers, Members or Providers into a separate UpdatePanel as you suggested and it works great now. Thanks for the tip! Wink

Allen


Glad I could help

No comments:

Post a Comment