I am using do-while loop for getting each items for the list box.
My code sample is like below:
do
{
string nameOfPersonFromWeb;
//Here is code that do some task from web
//for eg. get the name list from the website...
ListBox.Items.Add(nameOfPersonFromWeb);
totalnumber++;
} while (totalNumber<=25);
My problem is that, I am not getting each item instantly. When the loop is ended, it is displaying the whole items.
I want to display the name in each loop in the list box. I also want to highlight the particular listbox items by sending listbox item's index. I am using C# in code behind and Asp.net.