Hi,
I have 2 ddl, ddlCountry and ddlState, on selecting ddlCountry, the ddlState IS updated based on the chosen country BUT... when I select ddlState, the selected item in ddlState is not being masked as selected, thus I can't get the selected value.
Here is the code:
<asp:DropDownList
ID="ddlReceiverCountry"
runat="server"
CssClass="textBox"
OnSelectedIndexChanged="ddlReceiverCountry_SelectedIndexChanged"
AutoPostBack="true" >
</asp:DropDownList>
<br />
<asp:UpdatePanel ID="updatePanel" runat="server" UpdateMode="Conditional" >
<ContentTemplate>
<asp:Label ID="lblReceiverState" runat="server" Text="State" CssClass="newReceiverlabel">
</asp:Label>
<asp:DropDownList
ID="ddlReceiverState"
runat="server"
CssClass="textBox" OnSelectedIndexChanged="ddlReceiverState_SelectedIndexChanged">
</asp:DropDownList>
</ContentTemplate>
<Triggers>
<asp:PostBackTrigger ControlID="ddlReceiverState" />
<asp:AsyncPostBackTrigger ControlID="ddlReceiverCountry" EventName="SelectedIndexChanged" />
</Triggers>
</asp:UpdatePanel>
Thanks for any help :)