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
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…