I'm trying to set id
and name
for @Html.EditorFor
, but this isn't working:
@Html.EditorFor(model => model.value, new { @id = "testid1", @name="testname1"})
How do I set id
and name
?
I'm trying to set id
and name
for @Html.EditorFor
, but this isn't working:
@Html.EditorFor(model => model.value, new { @id = "testid1", @name="testname1"})
How do I set id
and name
?