Solved

Responding to a double-click event on a ListBox

Posted on 2004-10-01
3
378 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
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

713 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