:
Ajax.ActionLink , AjaxOption ... , Javascript Alert ?
Ms MVC 2, JQueryUI . , JQueryUI , - ... " ? /"... Ajax.ActionLink!
, ... .
-: , : "ASP MVC Ajax jQuery UI Dialog" ( Google)
Javascript-, remove() hide ( "fast" ) "item" tr .
deleteLinkObj.closest("tr").hide('fast')
deleteLinkObj.closest("tr.item").remove();
, ,
<%: Html.ActionLink([LinkName],[ActionName], new { id = item.Id }, new { @class = "delete-link" })%>
<%:Ajax.ActionLink([LinkName],[ActionName],[ControllerName],new { id = item.Id },new AjaxOptions{HttpMethod = "Delete" ,OnBegin = "JsonDeleteFile_OnBegin" }, new { @class = "delete-link" } ) %>
Post, , - OnBegin, javascript,
JQueryUI:
<script language="javascript">function JsonDeleteFile_OnBegin(context) {return false;}</script>
javascript .
, : "", JQueryUI, OnBegin ( post). "" Ricardo Covo , JavaScript Ricardo Covo (, ).
. / javascript- Ricardo Covo, OnSuccess OnComplete AjaxOptions (, ).