ListBox and round-trips

Discussion in 'ASP .Net' started by Mike, May 4, 2004.

  1. Mike

    Mike Guest

    Hello,

    I have a web user control that contains a ListBox. I would like to display some information based on the double-clicking of the user on a ListBox's item. I was thinking about some code behind procedure to do that, but I am a little bit worried about round-trip to the web server. Every time the user clicks on an item, a round-trip to the server is made. Is there a better solution to avoid these round-trips?

    Thanks.
    Mike
     
    Mike, May 4, 2004
    #1
    1. Advertisements

  2. Mike

    avnrao Guest

    if you want to use code behind and process the double click event on the server side, you dont have a chance other than post back.
    if you want to put in some client-side script to do the process, you can write the script and post it using RegisterClientScriptBlock.

    Av.
    "Mike" <> wrote in message news:...

    Hello,

    I have a web user control that contains a ListBox. I would like to display some information based on the double-clicking of the user on a ListBox's item. I was thinking about some code behind procedure to do that, but I am a little bit worried about round-trip to the web server. Every time the user clicks on an item, a round-trip to the server is made. Is there a better solution to avoid these round-trips?

    Thanks.
    Mike
     
    avnrao, May 4, 2004
    #2
    1. Advertisements

  3. Mike

    Mike Guest

    Thanks a lot! I will look at the "RegisterClientScriptBlock" option.
    Mike


    "avnrao" <> wrote in message news:...
    if you want to use code behind and process the double click event on the server side, you dont have a chance other than post back.
    if you want to put in some client-side script to do the process, you can write the script and post it using RegisterClientScriptBlock.

    Av.
    "Mike" <> wrote in message news:...

    Hello,

    I have a web user control that contains a ListBox. I would like to display some information based on the double-clicking of the user on a ListBox's item. I was thinking about some code behind procedure to do that, but I am a little bit worried about round-trip to the web server. Every time the user clicks on an item, a round-trip to the server is made. Is there a better solution to avoid these round-trips?

    Thanks.
    Mike
     
    Mike, May 4, 2004
    #3
    1. Advertisements

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. msnews.microsoft.com
    Replies:
    5
    Views:
    990
    Steve C. Orr [MVP, MCSD]
    Apr 23, 2005
  2. Replies:
    0
    Views:
    1,278
  3. The Colonel
    Replies:
    1
    Views:
    701
  4. Yash
    Replies:
    1
    Views:
    395
    Eliyahu Goldin
    Oct 25, 2007
  5. JJ

    Multiple Round Trips

    JJ, Dec 16, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    252
  6. Mike

    ListBox and round-trips

    Mike, May 4, 2004, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    216
    Ravikanth[MVP]
    May 5, 2004
  7. OliverMarchand

    Float.round - should it be round-to-even

    OliverMarchand, Apr 12, 2006, in forum: Ruby
    Replies:
    2
    Views:
    437
    OliverMarchand
    Apr 12, 2006
  8. cerr

    reading file round and round

    cerr, Mar 19, 2010, in forum: Perl Misc
    Replies:
    6
    Views:
    402
    Peter J. Holzer
    Mar 20, 2010
Loading...