MVC formcollection未显示所有控件
[HttpPost]
public ActionResult Create(EmployeeJOBModel EmployeeJOB, FormCollection Formcoll, string Module_Name)
{
}
对象Formcoll仅显示以下代码中的两个控件:
CODE:
员工信息
<div class="editor-label">
@Html.LabelFor(model => model.Employee_Name)
</div>
<div class="editor-field">
@Html.TextBoxFor(model => model.Employee_Name, new { @readonly = "readOnly" })
@Html.ValidationMessageFor(model => model.Employee_Name)
</div>
</fieldset>
<fieldset>
<legend>Employee Job Assignment</legend>
<div class="editor-label">
@Html.LabelFor(model => model.Client_Name)
</div>
<div class="editor-field">
@*@Html.EditorFor(model => model.Client_Name)*@
@Html.ValidationMessageFor(model => model.Client_Name)
@using (Html.BeginForm())
{
@Html.DropDownList("ClientName", ViewData["ClientName"] as List<SelectListItem>, new { @onchange = "Call_Client_Changefunc(this.value," + ViewData["Employee_ID"] + ")" })
}
</div>
<div class="editor-label">
@Html.LabelFor(model => model.Component_Name)
</div>
<div class="editor-field">
@*@Html.EditorFor(model => model.Component_Name)*@
@Html.ValidationMessageFor(model => model.Component_Name)
@using (Html.BeginForm())
{
@Html.DropDownList("Component_Name", ViewData["Component_Name"] as List<SelectListItem>, new { @onchange = "Call_Component_Changefunc(this.value," + ViewData["Employee_ID"] + ")" })
}
</div>
<div class="editor-label">
@Html.LabelFor(model => model.Module_Name)
</div>
<div class="editor-field">
@Html.ValidationMessageFor(model => model.Module_Name)
@using (Html.BeginForm())
{
@Html.DropDownList("Module_Name", ViewData["Module_Name"] as List<SelectListItem>)
}
</div>
<p>
<input type="submit" value="Create" />
</p>
</fieldset>
从上方仅显示ClientName
和Employee_ID
为什么有人可以帮助我?