OnSelectedIndexChanged event is not firing of the asp.net dropdown list

Home Forums Web Development ASP.Net OnSelectedIndexChanged event is not firing of the asp.net dropdown list

This topic contains 2 replies, has 3 voices, and was last updated by  Ankur 2 years, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #4627

    Shalabh
    Participant

    I have a dropdown that have four predefined transaction types:

    <div class="divtd w160 ">
    <asp:DropDownList ID="cmbbooktype" runat="server"
    class="selectcontrol w140"
    OnSelectedIndexChanged="cmbbooktype_OnSelectedIndexChanged">
    
    <asp:ListItem Text="TOPAY" Value="TOPAY"></asp:ListItem>
    <asp:ListItem Text="PAID" Value="TOPAY"></asp:ListItem>
    <asp:ListItem Text="TBB" Value="TOPAY"></asp:ListItem>
    <asp:ListItem Text="FOC" Value="TOPAY"></asp:ListItem>
    
    </asp:DropDownList>
    </div>

    I need to bind the rest of the controls in the form on the basis of above dropdown so i need to call OnSelectedIndexChanged event but this is
    not firing.

    #4966

    I think you have the same value of all options. So why selected index event is not working properly.

    #5067

    Ankur
    Moderator

    Value should be unique in case of use SelectedIndexChange Event properly.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.