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... !!!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.