Start New Discussion within our Software Development Community

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 :)

Problem solved... just added a 2nd AsyncPostBackTrigger

<asp:AsyncPostBackTrigger ControlID="ddlReceiverState" EventName="SelectedIndexChanged" />

Thanks for all help... !!!!

This question has already been answered. Start a new discussion instead.