Removing item from listitem

jeriarvence

New Member
I am not sure what I am missing but I want to remove an item then rebind the dropdownlist control. The code does not throw any errors but the dropddownlist(joblist) does not show the removed item. My code is:<BR><BR>Dim removejob As New ListItemCollection()<BR> <BR> removejob.Remove(removejob.FindbyValue(joblist.sel ectedItem.value))<BR><BR>Mattwhy are you making removejob a listitemcollection?<BR><BR>couldn't you just do this:<BR><BR>joblist.items.remove(joblist.items.findbyvalue(job list.selecteditem.value)))<BR><BR>i might be a little off, i wrote that without intellisense, hehe.
 
Back
Top