ASP.net & MVC : AJAX & update PartialView & confirmation message

vxyvxm1962

New Member
I'm using ASP.Net MVC to make my appI'm actually trying to delete an entry from my DB, first i must have a confirmation message and when the action is completed i want to refresh my PartialViewhere's my code\[code\] <%= Ajax.ActionLink( "Supprimer", "Delete", "Users", new { item.ID }, new AjaxOptions { Confirm= "confirmMethod", UpdateTargetId = "usersListeID", OnSuccess = "success" } )%>\[/code\]The problem is the confirm option is a simple ajax message, i want to use my own message (well structured because I used ajax & jQuery to make it)\[code\]function confirmMethod() {$.msgBox({ title: "Demande de confirmation", content: "Voulez-vous effectuer cette action?", type: "confirm", buttons: [{ value: "Oui" }, { value: "Non"}], success: function (result) { if (result == "Non") { abort(); } }});}\[/code\]
 
Top