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';");

posted @ 2012-12-12 09:39  番茄脸红红  阅读(238)  评论(0)    收藏  举报