I have included two Dropdown-lists inside an UpdatePanel. First Dropdown-list contains a list of Departments. What I want t
o do is, when the user selects a department, the second Dropdown-list should be populated with the list of employees work in that particular department.
I have used an Master page. The Dropdown-lists and the Script Manager are in the content page (child page). This worked Perfectly before I added the Master Page. But now, the second Dropdown-list (Employee list) updates only once.
Eg. when I change the default value of the Departments Dropdown-list, the second Dropdown-list (Employee list) updates. But if I change the Department code again, the values in the Employee list don't get updated. I checked the values in the Employee list using a break point. There the values have been updated. But the values are not displayed on the .aspx web page. (AutoPostBack property of the departmentID Dropdown-list is set to True)
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<asp:DropDownList ID="departmentID" runat="server" onselectedindexchanged="txtCompanyID_SelectedIndexChanged"> </asp:DropDownList>
<asp:DropDownList ID="employeeID" runat="server"> </asp:DropDownList>
Please help me with this issue.
Thanks in advance. Have a nice day!