Best way to create user notifications on webpage in ASP.NET MVC 4 Razor -


tl:dr -> user notification system on website. can avoid need call javascript script render notifications after ajax loads? (a base view calls work, there no base views afaik)

i looking way add user notification system website. such system responsible displaying messages 'import success', 'import failed', 'session timed out' etc.

i know similar questions have been answered before, here's question:

  • how should close possible having notifications display possible after being put tempdata? having them rendered on _layout page work, requests ask whole page. loading parts of website through ajax -> can avoid having write js script in ajax callbacks or partial views? looking prevent writing multiple calls same function.

toastr notification friend. demo page

you can install nuget install-package toastr

see so question - reference


Comments