こんにちは私はMVC 3
アプリケーションで働いています。次のコードでフォームを作成しています。
@model Xrm.Student
@{
ViewBag.Title = "Create Student Record";
}
@using (Html.BeginForm("Create", "Student", FormMethod.Post))
{
<div class="editor-label">
@Html.LabelFor(model => @Model.FirstName)
</div>
<div class="editor-field">
@Html.EditorFor(model => @Model.FirstName)
@Html.ValidationMessageFor(model => @Model.FirstName)
</div>
<div>
<input id="Submit1" type="submit" value="Submit" />
</div>
}
pubjects を入力する必要がある Firsname フィールドの下に新しいドロップダウンを追加したいと考えています。サブジェクトは別のエンティティです。私は非常に簡単かもしれませんが、私はMVCの初心者なので、ここで立ち往生しています。誰でもそれを達成する方法を教えてください。
感謝と敬意