v7.0

Bootstrap 5 responsive admin template

documented by Sean Ngu

Updated on: 24/November/2026
By: Sean Ngu

Thank you for purchasing my theme. If you have any questions that are beyond the scope of this help file, please feel free to send your question via ThemeForest. Thanks so much!

Install the .NET 11 SDK from the official website. Node.js and npm are also required when rebuilding frontend assets.

If you are using dotnet cli, run the following command:

cd /your-path-url/template_asp/
npm --prefix HudAsp install
dotnet run --project HudAsp/HudAsp.csproj

// if you are using hot reload, use the following command
dotnet watch --project HudAsp/HudAsp.csproj
OR

If you are using visual studio, just double click the HudAsp.sln inside the template folder. You may download the latest version of Visual studio from here.

Run Gulp commands from the HudAsp/ directory. The ASP.NET application is started by dotnet run; the default Gulp task builds frontend assets only.

File structure overview for HudAsp - ASP.NET Core 11 MVC

template_asp/
├── .agents/                      // Codex project skills
├── .claude/                      // Claude Code project skills
├── AGENTS.md                     // Codex project guidance
├── CLAUDE.md                     // Claude Code project guidance
├── README.md                     // developer quick start
├── HudAsp.sln
└── HudAsp/
    ├── Areas/                    // area features and Identity pages
    ├── Controllers/              // MVC controllers and actions
    ├── Data/                     // database context and migrations
    ├── Models/                   // application and view models
    ├── Properties/               // launch settings
    ├── Views/                    // authored Razor views and partials
    ├── src/                      // authored scss / img / js / data
    ├── wwwroot/                  // runtime static web root
    ├── bin/                      // generated build and publish output
    ├── obj/                      // generated intermediate output
    ├── gulpfile.js               // frontend build and copy tasks
    ├── package.json              // npm dependencies
    ├── sidebar.json              // sidebar menu structure
    ├── Program.cs                // application startup
    └── HudAsp.csproj

Below is the general page structure for HudAsp/Views/Shared/_Layout.cshtml.

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8" />
  <title>HudAsp | @ViewData["Title"]</title>
  <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
  <meta content="" name="description" />
  <meta content="" name="author" />

  <!-- ================== BEGIN core-css ================== -->
  <link href="~/css/vendor.min.css" rel="stylesheet" />
  <link href="~/css/app.min.css" rel="stylesheet" />
  <link href="~/css/site.css" rel="stylesheet" asp-append-version="true" />
  <!-- ================== END core-css ================== -->

  @RenderSection("Styles", required: false)
</head>
<body class="@ViewData["BodyClass"]">
  <!-- BEGIN #app -->
  <div id="app" class="app @ViewData["AppClass"]">
    @if (ViewData["AppHeaderNone"] == null)
    {
      <partial name="_Header" />
    }

    @if (ViewData["AppSidebarNone"] == null)
    {
      <partial name="_Sidebar" />
    }

    @if (ViewData["AppAppointmentNav"] != null)
    {
      <partial name="_AppointmentNav" />
    }
    else if (ViewData["AppTopNav"] != null)
    {
      <partial name="_TopNav" />
    }

    @if (ViewData["AppContentNone"] == null)
    {
      <div id="content" class="app-content @ViewData["AppContentClass"]">
        @RenderBody()

        <!-- BEGIN btn-scroll-top -->
        <a href="#" data-click="scroll-top" class="btn-scroll-top fade">
          <i class="fa fa-arrow-up"></i>
        </a>
        <!-- END btn-scroll-top -->
      </div>
    }
    else
      @RenderBody()

      <!-- BEGIN btn-scroll-top -->
      <a href="#" data-click="scroll-top" class="btn-scroll-top fade">
        <i class="fa fa-arrow-up"></i>
      </a>
      <!-- END btn-scroll-top -->
    }

    @RenderSection("OutterAppContainerContent", required: false)

    @if (ViewData["AppFooter"] != null)
    {
      <partial name="_Footer" />
    }
    
    <partial name="_ThemePanel" />
  </div>

  <!-- ================== BEGIN core-js ================== -->
  <script>
    window.paceOptions = { 
      ajax: { ignoreURLs: ['mainHub', '__browserLink', 'browserLinkSignalR'], trackWebSockets: false } 
    };
  </script>
  <script src="~/js/vendor.min.js"></script>
  <script src="~/js/app.min.js"></script>
  <!-- ================== END core-js ================== -->
  
  @RenderSection("Scripts", required: false)
</body>
</html>

Below is the list of supported variable / setting in shared page.

Variable Usage
ViewData["HtmlAttribute"] Set the attribute for html tag
ViewData["MetaDescription"] Set the variable for meta description
ViewData["MetaAuthor"] Set the variable for meta author
ViewData["MetaKeywords"] Set the variable for meta keywords
ViewData["Title"] Set the page title for individual page
ViewData["BodyClass"] Add css class to the body tag
ViewData["AppClass"] Add css class to the .app container
ViewData["AppContentClass"] Add css class to the .app-content container
ViewData["AppHeaderNone"] Set to true if you wish to remove header
ViewData["AppSidebarNone"] Set to true if you wish to remove sidebar
ViewData["AppContentNone"] Set to true to render the view without the layout's .app-content wrapper
ViewData["AppFooter"] Set to true if you wish to add the footer to the page
ViewData["AppTopNav"] Set to true if you wish to add the top nav to the page
ViewData["AppAppointmentNav"] Set to true to render the appointment-specific top navigation

Below is the list of supported section in shared page.

Section Usage
@section MetaTag {
-- tag html --
}
A way to add extra meta tag in individual page
@section Styles {
-- css files / url --
}
A way to add extra css files in individual page
@section Scripts {
-- js files / url --
}
A way to add extra js files in individual page
@section OutterAppContainerContent {
-- outter content here --
}
A way to put the content outside .app container

Gulp compiles third-party core styles into HudAsp/wwwroot/css/vendor.min.css and HUD Sass from HudAsp/src/scss/ into HudAsp/wwwroot/css/app.min.css. Change source files or HudAsp/gulpfile.js, not the generated bundles.

  1. FontAwesome
  2. jQuery UI
  3. Animate.css
  4. Pace Loader
  5. Bootstrap
<!-- core-css -->
<link href="~/css/vendor.min.css" rel="stylesheet" />
<link href="~/css/app.min.css" rel="stylesheet" />

<!-- OR without vendor.min.css -->
<link href="~/lib/@fortawesome/fontawesome-free/css/all.min.css" rel="stylesheet" />
<link href="~/lib/bootstrap-icons/font/bootstrap-icons.css" rel="stylesheet" />
<link href="~/lib/jquery-ui-dist/jquery-ui.min.css" rel="stylesheet" />
<link href="~/lib/animate.css/animate.min.css" rel="stylesheet" />
<link href="~/lib/pace-js/themes/black/pace-theme-flash.css" rel="stylesheet" />
<link href="~/lib/perfect-scrollbar/css/perfect-scrollbar.css" rel="stylesheet" />
<link href="~/css/app.min.css" rel="stylesheet" />

<!-- core-css required folder -->
HudAsp/wwwroot/css/
HudAsp/wwwroot/webfonts/

Gulp compiles the six core browser libraries into HudAsp/wwwroot/js/vendor.min.js and HUD application code from HudAsp/src/js/app.js into HudAsp/wwwroot/js/app.min.js. Page scripts are authored in HudAsp/src/js/demo/ and copied with npx gulp jsDemo.

  1. Pace Loader
  2. jQuery
  3. jQuery UI
  4. Bootstrap
  5. Perfect Scrollbar
  6. JavaScript Cookie

Sidebar collapsed:

@{
  ViewData["AppClass"] = "app-sidebar-collapsed";
}

Full height:

@{
  ViewData["AppClass"] = "app-content-full-height";
}

Full width:

@{
  ViewData["AppClass"] = "app-content-full-width";
  ViewData["AppSidebarNone"] = true;
}

Fixed footer:

@{
  ViewData["AppClass"] = "app-footer-fixed";
  ViewData["AppFooter"] = true;
}

Boxed Layout

@{
  ViewData["BodyClass"] = "app-with-bg";
  ViewData["AppClass"] = "app-boxed-layout";
}

Top Nav (without sidebar)

@{
  ViewData["AppClass"] = "app-with-top-nav app-without-sidebar";
  ViewData["AppTopNav"] = true;
  ViewData["AppSidebarNone"] = true;
}

Top Nav (without header)

@{
  ViewData["AppClass"] = "app-with-top-nav app-without-header";
  ViewData["AppTopNav"] = true;
  ViewData["AppHeaderNone"] = true;
}

Mixed Nav

@{
  ViewData["AppClass"] = "app-with-top-nav";
  ViewData["AppTopNav"] = true;
}

Mixed Nav Boxed Layout

@{
  ViewData["AppClass"] = "app-with-top-nav app-boxed-layout";
  ViewData["AppTopNav"] = true;
}

Add the theme to the <body> tag in HudAsp/Views/Shared/_Layout.cshtml in order to change the theme color.

Available Theme Options

<body class="theme-red">...</body>
<body class="theme-pink">...</body>
<body class="theme-orange">...</body>
<body class="theme-yellow">...</body>
<body class="theme-lime">...</body>
<body class="theme-green">...</body>
<body class="theme-teal">...</body>
<body class="theme-cyan">...</body>
<body class="theme-blue">...</body>
<body class="theme-purple">...</body>
<body class="theme-indigo">...</body>
<body class="theme-black">...</body>
<body class="theme-gray-100">...</body>
<body class="theme-gray-200">...</body>
<body class="theme-gray-300">...</body>
<body class="theme-gray-400">...</body>
<body class="theme-gray-500">...</body>
<body class="theme-gray-600">...</body>
<body class="theme-gray-700">...</body>
<body class="theme-gray-800">...</body>
<body class="theme-gray-900">...</body>

OR set the primary theme color in HudAsp/src/scss/_variables.scss.

<!-- LINE 79-->
$theme:        $red !default;
$theme:        $pink !default;
$theme:        $orange !default;
$theme:        $yellow !default;
$theme:        $lime !default;
$theme:        $green !default;
$theme:        $teal !default;
$theme:        $cyan !default;
$theme:        $blue !default;
$theme:        $purple !default;
$theme:        $indigo !default;
$theme:        $gray-200 !default;

Add the cover class to the <html> tag in HudAsp/Views/Shared/_Layout.cshtml in order to change the page cover.

Available Theme Options

<html class="bg-cover-2">...</html>
<html class="bg-cover-3">...</html>
<html class="bg-cover-4">...</html>
<html class="bg-cover-5">...</html>
<html class="bg-cover-6">...</html>
<html class="bg-cover-7">...</html>
<html class="bg-cover-8">...</html>
<html class="bg-cover-9">...</html>

Starting from version 2.0, we have implemented a default dark mode theme that is applied to the HTML page. This is achieved through the use of the data-bs-theme="dark" attribute in the <html> tag.

If you wish to enable the light mode instead, you can easily do so by removing the data-bs-theme="dark" attribute from the HTML tag. This will disable the default dark mode and enable the light mode theme.

Please note that once you remove the data-bs-theme="dark" attribute, the light mode theme will persist even if the user refreshes the page or navigates to a different page within the application.

Here's an example:

change from
<!DOCTYPE html>
<html lang="en" data-bs-theme="dark">
</html>
to
<!DOCTYPE html>
<html lang="en">
</html>

With this example, the data-bs-theme="dark" attribute has been removed from html tag. This will enable the light mode to the entire page.

OR

If you want to apply light / dark mode to a single component only, you can add the data-bs-theme="light|dark" attribute to that component.

<div class="card" data-bs-theme="light">
  <div class="card-body">
    <!-- your component content here -->
  </div>
</div>

Add the dir="rtl" attribute to <html> in order to enable Right-To-Left (RTL) layout direction.

<html lang="en" dir="rtl">

This will flip the layout direction of the entire page to support RTL languages like Arabic, Hebrew, or Persian.

Global Variables

The HudAsp/src/scss/_variables.scss file contains the variables that control the styles of your application.

Edit these authored Sass variables and regenerate the application stylesheet with npx gulp cssApp from the HudAsp/ directory.

<!-- global variable -->
HudAsp/src/scss/_variables.scss

Dark Mode Variables

The HudAsp/src/scss/_variables-dark.scss file contains the dark-mode values used with the global variables.

<!-- dark mode variable -->
HudAsp/src/scss/_variables-dark.scss

Run the named Gulp task for the frontend source you changed, then validate Razor and C# with dotnet build. A release package is generated with dotnet publish.

Do not forget to run the npm install command by using command prompt / terminal to generate the node_module folder.
cd /your-path-url/template_asp/HudAsp/
npm install
npx gulp cssApp
npx gulp jsApp
npx gulp jsDemo
npx gulp plugins

cd ..
dotnet build HudAsp/HudAsp.csproj
dotnet publish HudAsp/HudAsp.csproj -c Release

Plugin assets are copied to HudAsp/wwwroot/lib/. Release output is generated under HudAsp/bin/Release/net11.0/publish/; never edit that publish folder as source.

cd /your-path-url/template_asp/HudAsp/
npx gulp plugins

I've used the following images, icons or other files as listed.

Platform

  1. .NET: https://dotnet.microsoft.com/

jQuery Plugins

  1. animate.css: https://daneden.github.io/animate.css/
  2. ApexCharts: https://apexcharts.com/
  3. jQuery File Upload: https://blueimp.github.io/jQuery-File-Upload/
  4. Bootstrap: http://getbootstrap.com/
  5. Bootstrap Icons: https://icons.getbootstrap.com/
  6. Bootstrap Datepicker: https://uxsolutions.github.io/bootstrap-datepicker/
  7. Bootstrap Daterangepicker: http://www.daterangepicker.com/
  8. Bootstrap Slider: https://www.eyecon.ro/bootstrap-slider/
  9. Bootstrap Timepicker: http://jdewit.github.io/bootstrap-timepicker/
  10. Bootstrap Table: https://bootstrap-table.com/
  11. Chart.js: https://chartjs.org
  12. DataTables: https://datatables.net/
  13. FontAwesome: https://fontawesome.com/
  14. Fullcalendar: https://fullcalendar.io/
  15. Iconify: https://icon-sets.iconify.design/
  16. jQuery: https://jquery.com/
  17. jQuery UI: https://jqueryui.com/
  18. jQuery Typeahead: http://www.runningcoder.org/jquerytypeahead/
  19. jquery.maskedinput: https://github.com/excellalabs/jquery.maskedinput
  20. Javascript Cookie: https://github.com/js-cookie/js-cookie
  21. jszip: https://github.com/Stuk/jszip
  22. jVectormap: http://jvectormap.com/
  23. Lity: https://sorgalla.com/lity/
  24. Tag-It: http://aehlke.github.io/tag-it/
  25. Selectpicker: https://picker.uhlir.dev/
  26. Spectrum: https://seballot.github.io/spectrum/
  27. kbw-countdown: https://github.com/kbwood/countdown
  28. moment: http://momentjs.com/
  29. Pace: https://github.com/HubSpot/pace
  30. pdfmake: https://github.com/bpampuch/pdfmake
  31. Perfect Scrollbar: https://github.com/mdbootstrap/perfect-scrollbar
  32. PhotoSwipe: https://photoswipe.com/
  33. PicMo: https://picmojs.com/
  34. Popper.js: https://popper.js.org/
  35. Summernote: https://github.com/summernote/summernote

Photos

  1. Unsplash: https://unsplash.com/
  2. Freepik: https://www.freepik.com/

Icons

  1. Flaticon: https://www.flaticon.com/