Solved

Responding to a double-click event on a ListBox

Posted on 2004-10-01
3
381 Views
Last Modified: 2012-06-21
Is there any way I can respond to a double-click on a ListBox item?

If there's no ASP.NET way, is there an easy way to use JavaScript to do it?  (That is, causing a double-click to trigger an ASP.NET event).
0
Comment
Question by:yizchaknaveh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 24

Accepted Solution

by:
Justin_W earned 125 total points
ID: 12204823
You can use the "ondblclick" Javascript event handler.  E.g. Add ondblclick="myFunction();" to your server control tag.  There is no server-side event for double-click in ASP.NET.

See this PAQ for one of the most common ways to force a PostBack from Javascript code:
http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/Q_20716860.html
0
 
LVL 5

Assisted Solution

by:allanau20
allanau20 earned 125 total points
ID: 12204829
0
 

Author Comment

by:yizchaknaveh
ID: 12208580
Thanks.  Between those two links (and others) I managed to do it.  Let's hope ASP.NET 2.0 comes soon and puts an end to all this nonsense. :)
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question