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

Discussion in 'ASP .Net' started by =?Utf-8?B?cGVsZWdrMQ==?=, Aug 31, 2007.

  1. how can i fire event on doubleclick
    and what function/and how do i read the selected list of values?
    thnaks in advance
    peleg
    =?Utf-8?B?cGVsZWdrMQ==?=, Aug 31, 2007
    #1
    1. Advertising

  2. =?Utf-8?B?cGVsZWdrMQ==?=

    bruce barker Guest

    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)

    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
    >
    bruce barker, Sep 1, 2007
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mike

    DoubleClick on ListBox

    Mike, May 6, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    4,742
    =?Utf-8?B?S2FzaHlwYQ==?=
    May 6, 2004
  2. David Lozzi

    Firing a function on a doubleclick event

    David Lozzi, Mar 9, 2005, in forum: ASP .Net
    Replies:
    5
    Views:
    5,620
    =?Utf-8?B?VGltIFN0YWxs?=
    Mar 9, 2005
  3. Buddy Ackerman

    No Doubleclick event on a Listbox control?

    Buddy Ackerman, May 19, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    2,129
    Brock Allen
    May 19, 2005
  4. DoubleClick Event on ListBox

    , Mar 18, 2005, in forum: ASP .Net Building Controls
    Replies:
    1
    Views:
    179
  5. OfurGørn

    ListBox Click or DoubleClick event for web apps

    OfurGørn, Jul 29, 2005, in forum: ASP .Net Web Controls
    Replies:
    4
    Views:
    415
    OfurGørn
    Jul 29, 2005
Loading...

Share This Page