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

G

Guest

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

bruce barker

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,"dblclick");

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

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top