Solved

Responding to a double-click event on a ListBox

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

747 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now