470,612 Members | 2,505 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,612 developers. It's quick & easy.

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

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

Aug 31 '07 #1
1 2804
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
Aug 31 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Richard Fennell | last post: by
reply views Thread by John Giblin | last post: by
2 posts views Thread by Dan Nash | last post: by
3 posts views Thread by Ryan Taylor | last post: by
1 post views Thread by Dave | last post: by
1 post views Thread by dhnriverside | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.