作者scome30601 (GGyy)
看板C_Sharp
標題[問題] dropdownkist.items.remove(i)
時間Wed Dec 8 15:48:51 2010
請問在webform中
dropdownlist.items.remove(i);為何無法執行?
要用dropdownlist.items.removeAT(i)才可以..
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.124.76.99
1F:推 Laluth:i 是數字 i不是dropdownlist的item 這樣懂嗎? 12/08 17:17
2F:→ scome30601:我知道i是數字...我是有用迴圈讓他去刪除..但不知道為 12/08 18:31
3F:→ scome30601:什麼第一個不行 12/08 18:31
4F:推 mathlinka:dropdownlist.items.remove(dropdownlist.items(i)); 12/08 20:53
5F:→ blestadsl:不能用foreach... 12/08 21:54