drop down control + autopostback

mike55

Contributor
Joined
Mar 26, 2004
Messages
727
Location
Ireland
I have a dropdown list in a view belonging to a multiview control. This control is then inside an ajax update panel. My problem is that the the drop down won't call the method that handles the selected index change when the dropdown item selected is changed:

Code:
<asp:DropDownList ID="ddGroups" runat="server" AutoPostBack="True">
</asp:DropDownList>
                                                                           
'Based on the group selected, get all the members assigned to that group.
Protected Sub ddGroups_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ddGroups.SelectedIndexChanged
        LoadGroupMembers()
End Sub

Mike55.
 
Two ideas

Two things I'd try.

Firstly, try declaratively setting the OnSelectedIndexChanged property in the DropDownList:

Code:
<asp:DropDownList
    ID="ddGroups"
    runat="server"
    AutoPostBack="True"
    OnSelectedIndexChanged="ddGroups_SelectedIndexChanged"
>
</asp:DropDownList>

Secondly, test that other controls in the View are firing events correctly - test a Button for example.
 
Re: Two ideas

I tried both suggestions however was unable to get anywhere. What I eventually did was to create a new page from scratch and added the controls as I needed them. This worked. The only thing that I can think of was that an infragistics control that I was using was somehow conflicting with the agile controls.

Mike55.
 
Back
Top