What are the asp:DropDownList client side events?
77,295
Solution 1
Are you talking about ASP app? This app produces HTML code so you have all HTML events available, which for the select
tag (select
is a HTML tag for dropdown lists) are the following:
onchange
onclick
ondblclick
onmousedown
onmouseup
onmouseover
onmousemove
onmouseout
onkeypress
onkeydown
onkeyup
onfocus
onblur
Solution 2
You can assign the onchange client-side event to a DropDownList control programmatically:
DropDownListID.Attributes["onchange"] = "javaScriptFunction();";
Give a look to this article:
Author by
ASD
Updated on July 25, 2022Comments
-
ASD almost 2 years
I want to know the client side events (like onChange) for an asp:DropDownList.