@{ ViewBag.Title = Labels.paymentTypes; Layout = "~/Views/Shared/_SearchDetailsLayout.cshtml"; } html content @section scripts { <script src="~/Areas/AccountingAudit/Scripts/controllers/paymentTypesController.js"></script> <script src="~/Areas/AccountingAudit/Scripts/services/paymentTypesService.js"></script> }and the layout file includes bundles, e.g. SearchDetailsLayout
@using Siriusware.Resources; @{ ViewBag.Title = Labels.searchDetails; Layout = "_Layout.cshtml"; } @RenderBody() <!-- Unload Modal Warning --> <div id="modal-unload-warning" class="modal fade" tabindex="-2" role="dialog"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title"><i class="fa fa-check-square"></i>@Labels.unsavedChanges</h4> </div> <div class="modal-body"> <div class="alert alert-warning fade in" style="margin-bottom: 0;"> <i class="fa fa-exclamation-triangle fa-2x"></i> <span class="modal-message">@Messages.unsavedChanges</span> </div> </div> <div class="modal-footer" style="margin-top: 0;"> <button type="button" class="btn btn-primary" aria-hidden="true">@Labels.yes</button> <button type="button" class="btn btn-default" data-dismiss="modal" aria-hidden="true">@Labels.cancel</button> </div> </div> </div> </div> @section scripts { @RenderSection("scripts", required: false) } @section headerScripts { @RenderSection("headerScripts", required: false) }and this is Layout:
@using System.Reflection.Emit @using Siriusware.Resources; @using SysManager.Common.Constants <!DOCTYPE html> <html lang="en" ng-app="sysMgrApp"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta charset="utf-8"> <title>@Labels.applicationName</title> <title>ViewBag.</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="description" content=""> <meta name="keywords" content=""> <meta name="author" content=""> <!-- HTML5 Support for IE --> <!--[if lt IE 9]> @Scripts.Render("~/bundles/html5shim") <![endif]--> <some html stuff here> <!-- Footer starts --> <footer> <div class="container"> <div class="row"> <div class="col-md-12"> <!-- Copyright info --> <p class="copy">Copyright © @DateTime.Now.Year | <a href="@Labels.companyUrl">@Labels.companyName</a> </p> </div> </div> </div> </footer> <!-- Footer ends --> <!-- Scroll to top --> <span class="totop"><a href="#"><i class="fa fa-chevron-up"></i></a></span> @Scripts.Render("~/bundles/app", "~/bundles/custom", "~/bundles/jqueryval") @RenderSection("scripts", required: false) </body> </html>