I would like to add a double click mouse event to a listbox. When I double click an item I\'d like to get the specific item and assign a method. I have been searching for t
This code works for me
protected void Page_Load(object sender, EventArgs e) { if (Request["__EVENTARGUMENT"] != null && Request["__EVENTARGUMENT"] == "event 1") { // code for the event } ListBox1.Attributes.Add("ondblclick", ClientScript.GetPostBackEventReference(ListBox1, "event 1")); }