This discuss about how to add attributes to DropDownList ListItems and how to keep attributes on post back also by overriding SaveViewState and LoadViewState methods in Asp.Net.