In this post I’m gonna show you how to create an alert system using the tag helpers feature from the asp.net core mvc.
During this tutorial, I’ll be using a simple to do list project that I build, in order to experiment new stuff, you can download or clone this git repository.
The Problem
Feedback is important for the user, usually, is in form of messages on the screen. We could follow the client-side approach, by, creating an ajax request and showing a message after the response, or instead, follow the server-side approach, storing a message on a view bag, or even return a model with the message.
The asp.net core mvc has a new feature called tag helper, enabling us to create an alert system on the server-side.
Top comments (0)