When clicking on the delete, this popup will open and ask for confirmation, Cancel to stop, but do not redirect to the main page. Below code mvc has a deleted view ...
@using (Html.BeginForm ()) {& lt; P & gt; & Lt; Input type = "submit" value = "ok" /> @ Html.ActionLink ("back to list", "index") is jquery code
$ (". Deleteimage"). Click (function (AR) (ARR), ARR ('href'); $ ("# dialog-delete") dialog ({resize: false, height: 180, width: 300, show: (effect: ' Drop ", direction:" up "}, model: true, dragable: wrong, open: function (event, ui) {$ (this) .load (url);}, close: function (event, UI) {$ (This) .dialog ('close');}}); $ ("# dialog-delete"). Dialog ('open'); return;}); This code is being used in the index view.
@ (New HTML string (@ Ajax image execution) A (".. .. ... / content / images new AIXocations {HTPMIDP =" GET ", Insmodmode = Entrymode.Replest, UpdateTagID =" "," Delete "," Delete "," Delete "," Delete " , New {id = items. "Targetdiv"}))
The jQuery Use the closed method can close the UI dialog:
$ ("# dialog-delete") dialog ('off');
No comments:
Post a Comment