This demo application explains how to show a confirmation dialog when a button clicks in a gridview and as well as a single button in a view, This has been implemented using Jquery selectors and Jquery - ui dialog

install frontend libraries like Jquery, Jquery-ui using bower update command,

Check this article if you want to know more, ASP.NET Core : How to show a confirmation dialog with Jquery