Using TempData5:50 with James Churchill
Let’s see how we can use TempData to add notifications to the “Entries” list page.
To follow along commiting your changes to this course, you'll need to fork the aspnet-fitness-frog repo. Then you can clone, commit, and push your changes to your fork like this:
git clone <your-fork> cd aspnet-fitness-frog git checkout tags/v5.5 -b using-tempdata
Here’s the HTML markup that our designer provided for our “Entries” list page notification messages.
<div class="alert alert-success alert-dismissible" role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true">×</span></button> Your entry was successfully added! </div>
For more information about Bootstrap’s dismissible alerts, see this page on their documentation website.
You need to sign up for Treehouse in order to download course files.Sign up