I have a dropdownlist on a page like this;
<asp:DropDownList ID="ddlCities" runat="server"
AutoPostBack="true" ClientIDMode="Static"
OnSelectedIndexChanged="ddlCities_SelectedIndexChanged">
</asp:DropDownList>
This works great in normal conditions. But I have to change behaviour of dropdownlist due to client's actions.
So I mean, when client focused dropdownlist and moved down to other list items, SelectedIndexChanged
event is triggered. But I don't want this. I want, when user focused an element of dropdownlist, SelectedIndexChanged
event will not be triggered, and pressing enter or left mouse down events will trigger SelectedIndexChanged
event only.
Is there any way to achieve this?