//js :my_array is the values I will add to the listbox
for (var index=0;index<my_array.length;index++)
{
listbox.options[index]= new Option(my_array[index]["text"],my_array[index]["value"]);
}
//C#(server button) ListBox2 is the listbox in JS
for (int i=0;i<ListBox2.Items.Count;i++)
{
Response.Write(ListBox2.Items[i].Text+"<br>");
}
ListBox2.Items.Count的值始终不对。