ASP.NET - Dynamic DropDownList Selected Index Changed

Asked By Justin Deva on 09-Aug-12 07:24 AM


How Can i write selected Index changed for dynamic created dropdownlist

Peter Bromberg replied to Justin Deva on 09-Aug-12 07:53 AM
When creating the dropdownlist you need to programmatically add the event handler.

DropDownList objdropDown = new DropDownList();
objdropDown.EnableViewState = true;
objdropDown.AutoPostBack = true;
objdropDown.SelectedIndexChanged += new EventHandler(objdropDown_SelectedIndexChanged);
protected void objdropDown_SelectedIndexChanged(object sender, EventArgs e)
    //My code here
alina leo replied to Justin Deva on 10-Aug-12 05:53 AM
If kkkkkkkkkkkkkkkkkkk

<a href="">business supply</a>
Justin Deva replied to alina leo on 10-Aug-12 06:08 AM

 Wat r yu trying to say??..

 I Can't Understand