Groups | Blog | Home
all groups > asp.net building controls > march 2007 >

asp.net building controls : Composite control listbox SelectedIndexChangedEvent not firing


studen771
3/27/2007 4:04:59 PM
studen771
3/27/2007 7:07:31 PM
Thanks in advance to anyone who can help :)

I have a listbox within a composite control whom I want to capture the
SelectedIndexChanged event. I expose the listboxes 'AutoPostBack' property
and set it to true so this event can happen.

**The listbox does successfully perform post backs to the server upon the
user selecting different items (SingleMode of course)**

However, the selectedIndexChanged event does not 'bubble up' or fire. (I do
have a button control who's command event does successfully fire and is
captured in the overridden OnBubbleEvent method)

Help anyone??
Teemu Keiski
4/15/2007 12:00:00 AM
Hi,

how is the ListBox populated in the control? Is it populated only initially
(databound)?

--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net



[quoted text, click to view]
AddThis Social Bookmark Button