ActionLink--设置确认提示框后及刷新当前界面方法(一)
首先添加引用:MicrosoftAjax.js和MicrosoftMvcAjax.js这两个js文件;
View:
<%= Ajax.ActionLink("Text","Text连接",new{id=XXXid},new AjaxOptions(confirm="Are you sure for ...??")) %>
Controllor:
return JavaScript("alert('Success!');window.location='/Controllor/Action';");

浙公网安备 33010602011771号