Can anyone suggest me a way to Append Listbox items when i already have items in my asp:listbox
so far I have tried this :
ListItem Li=new ListItem(objSubscriber.FirstName,objSubscriber
.SubscriberID.ToString());
lstboxSubscribers.Items.Insert(lstboxSubscribers.Items.Count + 1, Li);
is there any way to find out last index of a listbox for the existing preloaded listbox? like LastIndexOf() or something similar
it’s throwing an indexoutofrange Exception
if more clarifications are required, I will provide it.
any workarounds?
Set
AppendDataBoundItems="true"and it will append the items in the existing listItems.