2010-02-03 122 views
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(); 
     } 
    } 

感谢 丽思

+0

如何为这个问题从您已经张贴在这里的其他人不同的是好的/ questions/2175883/dropdownlist-in-mvc和here:http://stackoverflow.com/questions/2190240/dropdownlist-problem? – slugster 2010-02-03 08:49:45

回答

0

语言和GUI库信息会为大家:)