I was trying to bind a dropdownlist through a button click event but sadly the click event wont fire, the modal and the button is in the same updatepanel.
Heres the mark up of my button:
<asp:Button ID="btnAddPos" class="button" runat="server" OnClick="btnAddPos_Click" data-toggle="modal" data-target="#myModal" Text="ADD POSITION" />


Heres my code behind:
 
protected void btnAddPos_Click(object sender, EventArgs e) { string type = ddlEmpType.SelectedValue.ToString(); SqlConnection sql = new SqlConnection(sqlcon); SqlCommand sqlcom3 = new SqlCommand("SELECT 0 as PositionID,'-- SELECT ONE --' as PositionDesc, 0 as TypeID union SELECT PositionID, PositionDesc, TypeID FROM RefEmployee_PositionType WHERE TypeID=" + type + "", sql); DataSet ...

Go to the complete details ...