hi,
I am using same code in asp.net mvc everything is ok, but I upgrade to net.core I have a minor problem.
so when I click to any button sidebar menü hide and show.
_layout is like below
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bulut Portal | @ViewBag.Title</title>
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
<link href="~/twitter-bootstrap/css/adminlte.min.css" rel="stylesheet" asp-append-version="true" />
<link href="~/twitter-bootstrap/css/bootstrap.min.css" rel="stylesheet" asp-append-version="true"/>
<link href="~/datatables/css/dataTables.bootstrap4.css" rel="stylesheet" asp-append-version="true"/>
<link href="~/datatables/css/dataTables.jqueryui.css" rel="stylesheet" asp-append-version="true"/>
<link href="~/bootstrap-sweetalert/sweetalert.min.css" rel="stylesheet" asp-append-version="true"/>
<link href="~/fontawesome-iconpicker/css/all.min.css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css" rel="stylesheet"/>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/fontawesome.min.css" rel="stylesheet"/>
<link href="~/limonte-sweetalert2/sweetalert2.min.css" rel="stylesheet" asp-append-version="true"/>
<link href="~/toastr.js/toastr.min.css" rel="stylesheet" asp-append-version="true"/>
<script src="~/jquery/jquery.min.min.js" asp-append-version="true"></script>
<script src="~/twitter-bootstrap/js/bootstrap.bundle.min.js" asp-append-version="true"></script>
<script src="~/twitter-bootstrap/js/adminlte.min.js" asp-append-version="true"></script>
<script src="~/jquery-ajax-unobtrusive/jquery.unobtrusive-ajax.min.js" asp-append-version="true"></script>
<script src="~/jquery-validate/jquery.validate.min.js" asp-append-version="true"></script>
<script src="~/toastr.js/toastr.min.js" asp-append-version="true"></script>
<script src="~/bootstrap-sweetalert/sweetalert.min.min.js" asp-append-version="true"></script>
<script src="~/fastclick/fastclick.min.min.js" asp-append-version="true"></script>
<environment include="Development">
<link href="~/twitter-bootstrap/css/bootstrap.min.css" rel="stylesheet" asp-append-version="true" />
<link href="~/fontawesome-iconpicker/css/all.min.css" rel="stylesheet" />
</environment>
</head>
<body class="hold-transition sidebar-collapse sidebar-mini">
<div class="wrapper">
@Html.Partial("_Header")
@await Component.InvokeAsync("Sidebar")
@RenderBody()
@Html.Partial("_Footer")
@RenderSection("Scripts", required: false)
</div>
</body>
</html>