質問編集履歴
2
ご指摘いただきましたのでタグをASP.NET MVC Framework へ変更しました。
title
CHANGED
File without changes
|
body
CHANGED
File without changes
|
1
下のコードの@ViewBag.HtmlAttributes_EditorForに(object)キャストを追加しました。自分でサンプルコードを書いたらエラーになったため。
title
CHANGED
File without changes
|
body
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
イコールの右側で「@」を使うコードも見かけました。
|
10
10
|
|
11
11
|
```C#
|
12
|
-
@Html.EditorFor(model => model.Name , new { htmlAttributes = @ViewBag.HtmlAttributes_EditorFor })
|
12
|
+
@Html.EditorFor(model => model.Name , new { htmlAttributes = (object)@ViewBag.HtmlAttributes_EditorFor })
|
13
13
|
|
14
14
|
```
|
15
15
|
よろしくお願いいたします。
|