Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have one listbox which is containing more than 65000 items. In selectedindexchanged event, I clear one textbox and assign selected item value from listbox in textbox. when event fires, this two process done quickly but after that loading is going on and on. I am wondering which process might be going on in background after selectedindexchanged event. After a very long time, textbox shows the selected value from listbox. FYI these two controls (listbox and textbox) are in ajax updatepanel. Can you please help me find the reason why it is taking so much time after executing selectedindexchanged event?
Posted
Comments
[no name] 7-Aug-14 7:22am    
Does this same thing happen if you have a more reasonable amount of items in your listbox?
Priyanka_L 7-Aug-14 7:40am    
we have items around 2000 or <=2000, then it working as expected. It doesn't take time in loading textbox.
[no name] 7-Aug-14 7:47am    
Okay then I would review your design and rework things so that you show your users a reasonable number of items. 2000 items in a listbox is still way too many.
Priyanka_L 7-Aug-14 7:52am    
yaa, 2000 is too much but it's users' requirement only. Thanks a lot for the response though.
Richard MacCutchan 7-Aug-14 7:38am    
65,000 items? Do you really expect your users to scroll through all of that to find the item they are looking for?

1 solution

Hi,
You could try an ajax autocomplete textbox instead of listbox.
Have a look at this.
AutoComplete With DataBase and AjaxControlToolkit[^]
:-)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900