我在asp.net mvc4页面的顶部获得了按钮

时间:2014-08-06 08:10:10

标签: asp.net asp.net-mvc-4

我在View中有以下代码。 我想按钮应该位于字段集的末尾,但是它位于顶部,如图所示。

 <fieldset>
    <legend>tblCategory</legend>

    @Html.HiddenFor(model => model.Id)

    <div class="editor-label">
        @Html.LabelFor(model => model.CategoryName)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.CategoryName)
        @Html.ValidationMessageFor(model => model.CategoryName)
    </div>

    <div class="editor-label">
        @Html.LabelFor(model => model.Description)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Description)
        @Html.ValidationMessageFor(model => model.Description)
    </div>

        <input type="submit" value="Save" />
</fieldset>

Layout of webpage

1 个答案:

答案 0 :(得分:0)

将其放入<p>

<p>
<input type="submit" value="Save" />
</p>