Posted on: 9/11/2013 8:09:46 PM | Views : 772

Hi,
I am using the code below to try and get a list of the items that are in the listbox. So there could be any number of items/rows and they are a 10 digit number. When I use the code below the "NPIListBox.Items.Count" only returns a count of 1 even when there are 3 items/rows in the list box. Any idea why I can get an accurate count when Next is clicked? My goal is to pass all items in the list box into a session so that I can use the values on another page. Thanks!
 
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load 'DoctorNameTextBox_AutoCompleteExtender.OnClientItemSelected = "getSelected" If IsPostBack Then ' Put call here to populate the listbox results from autocomplete extender selection PopulateListBox() End If End Sub Protected Sub cmdNext_Click(sender As Object, e As System.Web.UI.ImageClickEv ...

Go to the complete details ...