摘要: SelectList Constructor (IEnumerable, String, String, Object) .NET Framework 4 Initializes a new instance of the SelectList class by using the specified items for the list, the data value field, the data text field, and a selected value.Namespace: System.Web.Mvc Assembly: System.Web.Mvc (in System.We 阅读全文
posted @ 2011-05-02 14:36 露水丛生 阅读(4661) 评论(0) 推荐(0) 编辑
摘要: 具有键“Shape”的 ViewData 项属于类型“System.String”,但它必须属于类型“IEnumerable<SelectListItem>”。 说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。 异常详细信息: System.InvalidOperationException: 具有键“Shape”的 ViewData 项属于类型“System.String”,但它必须属于类型“IEnumerable<SelectListItem>”。 源错误: 行 107: <spa 阅读全文
posted @ 2011-05-02 13:43 露水丛生 阅读(8736) 评论(0) 推荐(0) 编辑