0
所以我有這個奇怪的問題,老實說我不知道什麼時候它停止工作,所以我很難理解問題的癥結所在。基本上,登錄和註冊按鈕停止工作,我不知道爲什麼。 從閱讀錯誤我明白,問題是在_Layout.cshtml中的某處,因爲我沒有觸及_LoginPartial.cshtml或任何其他相關文件。 這裏是我的_Layout.cshtml:以下部分已被定義,但尚未呈現佈局頁面「〜/ Views/Shared/_Layout.cshtml」:「腳本」登錄/註冊
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title - Guitar Store</title>
<link href="~/Content/bootstrap.min.css" rel="stylesheet" />
<link href="~/Content/bootstrap-theme.min.css" rel="stylesheet" />
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
@Html.ActionLink("Guitar Store", "List", "Product", new { area = "" }, new { @class = "navbar-brand" })
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>@Html.ActionLink("Home", "List", "Product")</li>
<li>@Html.ActionLink("About", "About", "Home")</li>
<li>@Html.ActionLink("Contact", "Contact", "Home")</li>
<li>@Html.Action("Summary", "Cart")</li>
</ul>
@Html.Partial("_LoginPartial")
</div>
</div>
</div>
<br /><br /><br />
<div class="row panel">
<div id="categories" class="col-lg-3">
@Html.Action("Menu", "Nav")
</div>
<div class="col-lg-7">@RenderBody()</div>
</div>
</body>
</html>
可否請你指導我修復這個問題?
編輯:如果需要更多文件,我可以在這裏編輯它們。