简体   繁体   English

列表框多个选择项转到顶部

[英]listbox Multiple select items go to top

am using a listbox with multiple selection control. 我正在使用具有多个选择控件的列表框。 Now am having 200 names in list box. 现在在列表框中有200个名称。 suppose i select no of employee 50,76,34,65,95 etc. First am select 50 and hold ctrl key and select 76 means its go to the top of the first name. 假设我没有选择50、76、34、65、95等员工。首先我选择50并按住ctrl键,然后选择76表示其转到名字的顶部。 I have listbox with in update panel with triger'. 我在带有triger的更新面板中具有列表框。 but it post back for each selection.please help me to fix this error... 但它会为每个选择发回邮件。请帮助我修复此错误...

如果将ListBox.AutoPostback设置为false,它是否会按照您希望的那样运行?

your List Box is placed inside the updatepanel with trigger. 您的列表框将放置在带有触发器的updatepanel中。 it won't postback for each selection, it is posted back due to trigger. 不会为每个选择回发,而是由于触发而回发。 you can select multiple items by setting the long duration between the triggers. 您可以通过设置触发器之间的持续时间来选择多个项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM