1
Mvc CheckBoxListFor拡張機能を使用しています。引数の指定はデモに表示されているように私には正しそうだが、それでも固定引数が指定されたエラーの後に指定された引数指定が必要になる。私はまた、id属性を指定したいと思います。Mvc CheckBoxListFor名前付き引数指定エラー
ご協力いただきありがとうございます。
@Html.CheckBoxListFor(model => model.Categories.PostedCategories.CategoryIds,
model => model.Categories.AvailableCategories,
entity => entity.CategoryId,
entity => entity.Name,
model => model.Categories.SelectedCategories,
position: Position.Horizontal,
x => new { @class = "actcheckbox" }) // here is the line that occurs that error.
@Html.ValidationMessage("catSelectionError")
ありがとうございました。各チェックボックスリストに異なるIDを付けるのはどうですか? – user3055125