1 回答
TA贡献1805条经验 获得超10个赞
通过将其添加到视图中,它起作用了!由于某种原因我必须设置这些值......不确定为什么。但是嘿,只要它有效,对吧?:)
@Html.HiddenFor(x => x.MyError.Overlaps, new { @Value = Model.MyError.Overlaps })
@Html.HiddenFor(x => x.MyError.OverlappingError.OverlapsAfter, new { @Value = Model.MyError.OverlappingError.OverlapsAfter })
@Html.HiddenFor(x => x.MyError.OverlappingError.OverlapsBefore, new { @Value = Model.MyError.OverlappingError.OverlapsBefore })
@Html.HiddenFor(x => x.MyError.OverlappingError.IdAfter, new { @Value = Model.MyError.OverlappingError.IdAfter })
@Html.HiddenFor(x => x.MyError.OverlappingError.IdBefore, new { @Value = Model.MyError.OverlappingError.IdBefore })
- 1 回答
- 0 关注
- 108 浏览
添加回答
举报