选定的下拉列表索引?

时间:2010-02-03 08:40:28

标签: drop-down-menu

如何在此函数中设置下拉列表的选定索引。

请告诉我?

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();
        }
    }

由于 里兹

1 个答案:

答案 0 :(得分:0)

语言和Gui图书馆信息对每个人都很好:)