I have the following DropDownList control:
AutoPostBack="true"
and
write page load event
if (!IsPostBack)
{
DDL_Designation_Bind();
}
// Because autopostback
properties fire load event then our dropdownlist
rebind and always selected index 0 so Not Rebinding dropDownlist
Add this to dropdown list aspx it will cause a request to be send to the server and your event will be fired.
AutoPostBack="true"
Set AutoPostBack=True
as an attribute of your DDL and it will automatically post back the selected index change event
You just need to set AutoPostBack = True
From ListControl.AutoPostBack property;
Gets or sets a value indicating whether a postback to the server automatically occurs when the user changes the list selection.