R
Roshawn
Hi,
I have a DDL server control on my web form. I'm having difficulty trying to
fire the OnSelectedIndexChanged event. I've specified a procedure to handle
the event. Whenever I changed the selected index of the DDL server control,
the event doesn't fire at all. Below are the settings for the DDL server
control:
<asp:dropdownlist autopostback="true" id="Dlist" runat="server"
onselectedindexchanged="Selection_Changed" />
Here is the code for the procedure to handle the event:
Sub Selection_Changed(Byval s as Object, Byval e as EventArgs) Handles
Dlist.SelectedIndexChanged
Me.ViewState("page") = Me.Dlist.SelectedItem.Value
Call GetData()
End Sub
What I want to do is fire the event everytime there is a change in the DDL.
In other words, I'd like the page to be posted back to the server
immediately when there is a selection change in the DDL. As it stands,
nothing happens when I select a new value in the DDL.
Can anyone help me with this problem?
Thanks,
Roshawn
I have a DDL server control on my web form. I'm having difficulty trying to
fire the OnSelectedIndexChanged event. I've specified a procedure to handle
the event. Whenever I changed the selected index of the DDL server control,
the event doesn't fire at all. Below are the settings for the DDL server
control:
<asp:dropdownlist autopostback="true" id="Dlist" runat="server"
onselectedindexchanged="Selection_Changed" />
Here is the code for the procedure to handle the event:
Sub Selection_Changed(Byval s as Object, Byval e as EventArgs) Handles
Dlist.SelectedIndexChanged
Me.ViewState("page") = Me.Dlist.SelectedItem.Value
Call GetData()
End Sub
What I want to do is fire the event everytime there is a change in the DDL.
In other words, I'd like the page to be posted back to the server
immediately when there is a selection change in the DDL. As it stands,
nothing happens when I select a new value in the DDL.
Can anyone help me with this problem?
Thanks,
Roshawn