There is a button, it saves the changed data in input in the database. How to make it so that when you click on a button, a pop-up window for a successful update is displayed (so that you do not throw it on another page)? I use BeginForm and JsonResult .

    1 answer 1

    You can return the js-code for the alert from the controller as follows:

     public ActionResult SomeAction() { // ... var script = @"alert(""Информация была успешно занесена в базу данных."");"; return JavaScript(script); } 
    • thank. I already forgot about it. - g100franklin