0
Hy Guys!查看數據
我不知道如何在控制器上獲取這些數據。有人能幫助我嗎?
@using (Html.BeginForm()) {
@Html.ValidationSummary(true)
<fieldset>
<legend>Pedido</legend>
<div class="editor-label">
@Html.LabelFor(model => model.Assunto)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.Assunto)
@Html.ValidationMessageFor(model => model.Assunto)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.Data)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.Data)
@Html.ValidationMessageFor(model => model.Data)
</div>
<p>
<input type="submit" value="Create" />
</p>
</fieldset>
}
Tks。
並將HttpPost屬性添加到該方法。 – 2011-03-01 17:45:32
太簡單了! TKS! – Thiago 2011-03-01 18:01:29