1 回答

TA貢獻(xiàn)1805條經(jīng)驗(yàn) 獲得超10個(gè)贊
通過(guò)將其添加到視圖中,它起作用了!由于某種原因我必須設(shè)置這些值......不確定為什么。但是嘿,只要它有效,對(duì)吧?:)
@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 關(guān)注
- 148 瀏覽
添加回答
舉報(bào)