Sample MVC project using the CookieTempDataProvider for BootStyle alerts
C# JavaScript CSS ASP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


A sample MVC Project using the CookieTempDataProvider and Bootstrap alerts. This project will illustrate how to add notifications on the serverside and client side via javascript.

  1. Add the CookieTempDataProvider code We used the CookieTempDataProvider from

  2. Add a basecontroller that uses the CookieTempDataProvider

  3. Added Bootstrap to project using NuGet for styling -(Added the reference to bootstrap.js and bootstrap.css in the _Layout.cshtml file.

  4. Added notification icons (used

  5. In _Layout.cshtml, moved the scripts into the tag (so that jquery will work) @Scripts.Render("~/bundles/jquery") @RenderSection("scripts", required: false)