<分区>
我正在为索引页制作一个小表格。
@model MarketPlace.Models.Download
@{
ViewBag.Title = "Index";
}
@using (Html.BeginForm("Index", "Downloads", System.Web.Mvc.FormMethod.Post, new { enctype = "multipart/form-data" }))
{
<td>@Html.DisplayNameFor(model => model.EMail)</td>
<td>@Html.TextBoxFor(model => model.EMail, new { @class = "form-control round-input", @style = "width:200px" })</td>
<td>@Html.DisplayNameFor(model => model.Reference)</td>
<td>@Html.TextBoxFor(model => model.Reference, new {@class = "form-control round-input", @style = "width:200px"})</td>
<td>@Html.DisplayNameFor(model => model.Products)</td>
<td>@Html.Buttonorsomething
}
我以为会有一个 `@Html.Button 之类的东西,我在 Google 上搜索了一下,但显然他们没有添加一个。
我的问题是,如何制作按钮?
编辑:请注意,我使用 ASP.NET MVC 的时间很短,请原谅我提出这个愚蠢的问题!