ASP.Net DropDownList event handler even when user selects the same item
I have a DropDownList
that allows users to make selections. These selections result in a table being populated.
This all works fine when users select different values. However, I woudl like to refresh the table even when the user selects the same value.
Does anyone know what event on the ASP.Net DropDownList
that I can use for this?
My DropDownList looks like:
<asp:DropDownList ID="ddlClient" runat="server" AutoPostBack="True">
<asp:ListItem Value="1">1</asp:ListItem>
<asp:ListItem Value="2">2</asp:ListItem>
<asp:ListItem Value="3">3</asp:ListItem&开发者_如何学Gogt;
<asp:ListItem Value="4">4</asp:ListItem>
</asp:DropDownList>
Thanks
AlanYou can place a refresh Button
next to the DropDownList
and write your logic inside its Click
event handler too.
It would be easier to the user to click the Button
than selecting the same item from the DropDownList
.
Here is your answer:
DropDownList annoyance: same value won't trigger event
精彩评论