This is a discussion on ASP.net threading issue when populating a listbox within the ASP and ASP.NET Programming forums, part of the Web Development category; I have started a thread in my web page when clicking a button such that the thread will collect the ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| I have started a thread in my web page when clicking a button such that the thread will collect the values to be listed in the listbox but before the threading process completed, the page gets loaded and the values are not binded in the listbox. I have tested the page by breakpoints, the values are added to the listbox perfectly... Can anybody tell me, how to solve this issue?
__________________ $enthil |
| Sponsored Links |
| |||
| I think you have this problem because of the page loaded before all the values are populated in the listbox... Try using a thread to suspend for some seconds so in that time interval your list is populated, then you can load your page... Try this code after calling the thread : Quote:
|
| |||
| no.. i didnt mean that... I am starting a thread from the main class.. after that thread starts the control will come to the next statement and have to wait until the thread completes it process...
__________________ $enthil Last edited by $enthil : 11-04-2007 at 11:30 PM. |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Extracting specific elements from listbox | Kirubhananth | ASP and ASP.NET Programming | 5 | 04-08-2008 10:35 PM |
| How i will get the selected value from Listbox( if selection mode=multiple) | Mramesh | C# Programming | 3 | 02-07-2008 04:20 AM |
| Listbox onselected event problem | $enthil | ASP and ASP.NET Programming | 2 | 11-01-2007 10:36 PM |
| How to implement threading in VB.Net? | amansundar | VB.NET Programming | 2 | 10-30-2007 07:41 AM |
| Threading in C# .Net 2005 : | a.deeban | C# Programming | 53 | 09-10-2007 07:27 AM |