0
我該如何在這個函數中設置下拉列表的選定索引。選擇的下拉列表索引?
請告訴我嗎? http://stackoverflow.com:
public IList GetMountainList()
{
int mountainId = 0;
string mountainName = string.Empty;
using (brandconnectionsEntities modelObject = new brandconnectionsEntities())
{
return (IList)(from s in modelObject.BC_mountainResortMediaList
select new
{
mountainId = s.mountainResortId,
mountainName = s.mountainResortName,
SelectExtensions = s.mountainResortId ,
})
.ToList();
}
}
感謝 麗思
如何爲這個問題從您已經張貼在這裏的其他人不同的是好的/ questions/2175883/dropdownlist-in-mvc和here:http://stackoverflow.com/questions/2190240/dropdownlist-problem? – slugster 2010-02-03 08:49:45