ASP.NET Core ajax modals with validation using Bootstrap
In this tutorial I’m going to show you how to load modals dynamically and how to process forms (within modals) via ajax requests. I’m going to use Bootstrap for modals, because it’s pretty popular, but you may as well use any other UI framework or library for displaying modals. We’ll use jQuery to send ajax and perform modal actions. For the backend, we’ll use .NET Core MVC, but you can replace it with your technology of choice. The keypoint here for you is to find a way to return partial view (that is only HTML of a modal, without the whole layout) and to validate data. ...