By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,984 Members | 2,832 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,984 IT Pros & Developers. It's quick & easy.

ListBox and round-trips

P: n/a

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
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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" <no****@nospam.com> wrote in message news:Op**************@tk2msftngp13.phx.gbl...

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
Nov 18 '05 #2

P: n/a

Thanks a lot! I will look at the "RegisterClientScriptBlock" option.
Mike
"avnrao" <av*@newsgroups.com> wrote in message news:OR*************@TK2MSFTNGP11.phx.gbl...
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" <no****@nospam.com> wrote in message news:Op**************@tk2msftngp13.phx.gbl...

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
Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.