Actually this is a common issue documented on various sites and forums. When adding ListItems dynamically and setting attributes that the attribute tags are not retained during postback.
We need to derive a control from the base of ListBox and implement the methods to render it properly.Here is an article that describes how to do this and covers this issue(for dropdownlist).
Please Click here....
The article covers the DropdownBox but the ListItem class is the same class for dropdownlists as it is for the listbox control.
Hope this will definitely of help for you.