【发布时间】:2012-09-07 12:39:15
【问题描述】:
我得到:表达式树可能不包含动态操作
当我这样做时:
@Html.TextBoxFor(m => m.Translations[ViewBag.Languages[i].CultureCode].Title)
<br/>
@Html.TextBoxFor(m => m.Translations[ViewBag.Languages[i].CultureCode].PreviewDescription)
<br/>
@Html.TextBoxFor(m => m.Translations[ViewBag.Languages[i].CultureCode].FullDescription)
我之前在做更简单的TextBoxFor,例如:
@Html.TextBoxFor(m => m.ContactName)
@Html.TextBoxFor(m => m.EmailAddress)
在视图的顶部,我的 using 语句类似于:@model x.y.z.Listing
【问题讨论】:
标签: asp.net-mvc