Author: defireman | Posted on: 11/13/2008 4:10:23 AM | Views : 596

 Hi all,
 I am having problems getting the correct selectedindex value when I click on a ASP list box. For example, if I have 8 items in the list box, I will be able to select the first 5 items, and the selectedindex value (as seen in the debugger) will be correct. However, attempting to select the 6th item and beyond will always give me the selectedindex value of the 5th item (i.e. selectedindex = 4). It seems I can only select the first half of the items of the list box. I have not modified the selectedindex value in any way before getting its value, and I cannot figure out what I have been doing wrong.
 Do you have an idea of what could be wrong?
 Thanks.
 Attached is my code concerning the box:
  
<asp:ListBox ID="lbChannel" AutoPostBack=Go to the complete details ...