Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Responding to a double-click event on a ListBox

Posted on 2004-10-01
3
Medium Priority
?
385 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 500 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 500 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

670 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