阅读背景:

已定义以下部分但尚未为布局页面“〜/ Views / Shared / SiteLayout.cshtml”呈现:“脚本”

来源:互联网 

I have a simple view:

我有一个简单的看法:

@model BootstrapTest4.Models.Account.CambioDeClave

@{
    Layout = "~/Views/Shared/SiteLayout.cshtml";
}

<h2>@Model.Title</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>

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

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

        <p>
            <input type="submit" value="Cambiar Clave" />
        </p>
    </fieldset>
}

@section Scripts {
    @System.Web.Optimization.Scripts.Render("~/bundles/jqueryval")
}
@model Boo



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: