我在我的ascx页面中收到BC30203错误。MVC中的ascx页面中的标识符预期错误
BC30203:预期标识符。 (4号线 - 新[])
代码:
<%= Html.DropDownList(
"",
new SelectList(
new[]
{
new { Value = "true", Text = "Yes" },
new { Value = "false", Text = "No" },
},
"Value",
"Text",
Model
)
) %>
缺少什么?
解决方案.. http://stackoverflow.com/questions/9568111/problems-converting-editorfor-to-dropdownlist – ZVenue 2012-03-05 16:51:01