开发者

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

Alan


You 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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜