摘要:首先添加引用: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'
阅读全文