DropDownList not fire event SelectedIndexChanged

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
 
M

Mohamoss

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
 
G

Gonçalo Boléo

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top