Thanks for your reply sir. i have changed in my exisging code but i got error with the following :
error: collection was modified; enumeration operation may not execute.
at line: foreach (ListItem lItem in listbxSelComp.Items)
could you help me in this regards plz thks