Groups | Blog | Home
all groups > asp.net building controls > may 2005 >

asp.net building controls : SelectedIndexChanged NOT Firing



Paul Matthews
5/26/2005 8:14:01 PM
Hi,

SelectedIndexChanged NOT Firing in my DropDown ListBox
AutoPostBack = true
EnableViewState = True

Autpostback works, but the SelectedIndexChanged Event does not fire !!!

regards
Paul

Brock Allen
5/30/2005 6:43:53 AM
This simply sounds like the event handler isn't properly wired up. If you're
using VS.NET then check that the InitalizeComponent method in the codebehind
is assigning a delegate to the SelectedIndexChanged event of your drop down
list. Antother option is to use the OnSelectedIndexChanged="YourEventHandlerName"
syntax right in the tag for the <asp:DropDownList>.

-Brock
DevelopMentor
http://staff.develop.com/ballen



[quoted text, click to view]


AddThis Social Bookmark Button