asp.net - Get attribute from DropdownList SelectedItem -
i have dropdownlist need store more info standard list item allows. approach i've taken add together attribute each of listitems.
i monitor changes , can homecoming selectedindex, i'm not sure how attribute there, or whether there easier ways of achieving this.
any ideas?
try this:
ddl.selecteditem.attributes["key"];
asp.net drop-down-menu attributes listitem
No comments:
Post a Comment