Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Responding to a double-click event on a ListBox

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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

971 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