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

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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)
 
Back
Top