List<String> nameList = new List<String>();
DropDownList ddl = new DropDownList();
목록 여기에 채워지는 드롭 다운리스트에 목록을 덤프, 다음 분류 :C 번호는 -
nameList.Sort();
지금 내가 문제가있어 곳 (사용 foreach 문이 드롭 다운리스트로 드롭 할 필요가) :
foreach (string name in nameList){
ddl.Items.Add(new ListItem(nameList[name].ToString()));
}
아무런 제안이 없습니다.
Error - The best overloaded method match for 'System.Collections.Generic.List<string>.this[int]' has some invalid arguments
Error - Argument '1': cannot convert from 'string' to 'int'