crud operation with jquerry and ajax

 jQuery Ajax CRUD in ASP.NET Core MVC with Modal Popup - CodAffection

GitHub - CodAffection/jQuery-Ajax-with-ASP.NET-Core-MVC-using-Modal-PopUp


for : success and delete notification 


--for success and delete notification 

go to their official website

notify.js

download.min.js


then add this in js folder 

give path in layout file 


and add this in this segment


success: function (res) {

                if (res.isValid) {

                    $('#view-all').html(res.html)

                    $('#form-modal .modal-body').html('');

                    $('#form-modal .modal-title').html('');

                    $('#form-modal').modal('hide');

                    $.notify('submition successful', { globalPosition: 'top center', className:'success' });

                }



                success: function (res) {

                    $('#view-all').html(res.html);

                    $.notify('deletion successful', { globalPosition: 'top center', className:'success' });

                },

                error: function (err) {

                    console.log(err)

                }

            })

Comments