@{ ViewBag.Title = "Detail"; Layout = "~/Views/Shared/_Layout.cshtml"; } @using MES.Production.Service; @using Central.Control.Domain; @using Ant.Service.Common; @model COM_INDEX @using (Ajax.BeginForm("Save", null, new AjaxOptions(){HttpMethod = "Post",OnBegin = "SubAjax.Loading",OnComplete = "SubAjax.Complate",OnFailure = "SubAjax.Failure",OnSuccess = "SubAjax.Success"}, new { @class = "form-horizontal dig-from", @role = "form" })) {
@Html.HiddenFor(p => p.ID) @Html.TextBoxFor(p => p.TITLE, new { @class = "form-control", @placeholder = "请输入导航标题", @datatype = "*1-100", @nullmsg = "请输入导航标题!", @errormsg = "请输入导航标题!" })
@Html.Hidden("ICON", Model.ICON)
@Html.TextBoxFor(p => p.SHOWORDER, new { @class = "form-control", @placeholder = "请输入模块排序值", @datatype = "n", @nullmsg = "请输入模块排序值", @errormsg = "只能输入数字" })
示例
@Html.TextBoxFor(p => p.PATH, new { @class = "form-control", @placeholder = "请输入导航路径" })
} @section scripts{ }