我正在使用MVC 3,我有一个按钮,用户按下来更新某些记录或不更新某些记录。我试图在用户按下No, thank you button
后关闭选项卡。在做了一些研究之后,我已经能够在这个主题上找到所有关于使用jQuery或JavaScript关闭窗口的信息。我希望有一种方法可以关闭actionLink中的窗口。我已经在下面列出了按钮代码,随时可以提出您可能遇到的任何问题,因为我会经常检查。如果您需要其他代码,我也很乐意提供。谢谢你的帮助!单击按钮后如何关闭窗口?
<div class="message dialog" title="Changes Saved">
You have successfully saved your changes.<br/>Would you like to update the other versions of this Project?
<br />
@Html.ActionLink("Yes, Update Projects", "UpdateProject", "Project", new { id = Model.IAMP_PK }, new { @class = "button2" })
@Html.ActionLink("No, Thank you", null, null, new { @class = "button2" })
</div>
感谢您的回复非常感谢做得非常好的答案,帮助你,Rock! – Goldentp 2012-08-14 18:24:20