Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > asp.net 2 : asp:listbox doubleclick and fire event

Reply
Thread Tools

asp.net 2 : asp:listbox doubleclick and fire event

 
 
=?Utf-8?B?cGVsZWdrMQ==?=
Guest
Posts: n/a
 
      08-31-2007
how can i fire event on doubleclick
and what function/and how do i read the selected list of values?
thnaks in advance
peleg

 
Reply With Quote
 
 
 
 
bruce barker
Guest
Posts: n/a
 
      08-31-2007
you will need to add the feature with client script. the browser
supports ondblclick for most objects (note: onclick fires first). attach
it the browser object to what you want to catch event. then do a client
postback. you should be able to subclass the listbox and add the event.

hint:

attach postback code:

ctl.Attributes["ondblclick"] =
Page.ClientScript.GetPostBackEventReference(ctl,"d blclick");

then override the RaisePostBackEvent handler to catch the dblclick
postback and raise a new event.

-- bruce (sqlwork.com)

pelegk1 wrote:
> how can i fire event on doubleclick
> and what function/and how do i read the selected list of values?
> thnaks in advance
> peleg
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Doubleclick event in DataView Chris Zopers ASP .Net 1 02-12-2008 10:40 AM
How to process DoubleClick event in JPanel wensa Java 1 01-18-2006 05:17 PM
No Doubleclick event on a Listbox control? Buddy Ackerman ASP .Net 1 05-19-2005 03:53 PM
DoubleClick Event on ListBox kgray@tecolote.com ASP .Net Building Controls 1 03-21-2005 04:59 PM
Firing a function on a doubleclick event David Lozzi ASP .Net 5 03-09-2005 09:53 PM



Advertisments