DropDownList not fire event SelectedIndexChanged

  • Thread starter Thread starter Gonçalo Boléo
  • Start date Start date
G

Gonçalo Boléo

I have a dropdownlist with SeletedIndexChanged event handler attached to it
on the InitializeComponent of my aspx page.

this.ddcontrol.SelectedIndexChanged += new
System.EventHandler(this.ddcontrol_selectedindexchanged)

However the event is not fired and i can't figure why!!
Are there any configuration issues in the project that put this to work?
What are the possible causes of this?

thanks,
Gonçalo Boléo
 
Hi Concalo
May be the AutoPostBack of your dropdownlist is set to false. Which means
that when an event fires on the dropdownlist , that even doesn't cause the
page to be posted back instead it wait tell the next post of the page on
order to be handled. So check the auto postback property of your control .
Mohamed M .Mahfouz
Developer Support Engineer
ITWorx on behalf of Microsoft EMEA GTSC
 
The AutoPostBAck property is set to true.
The page make a "refresh" when i select another dropdown item.
The event doesn't fire.

thanks,
Gonçalo Boléo
 
Back
Top