1

我有这样的 mvc actionLink

@Html.ActionLink("Delete", "Delete", 
   new { id = item.Id }, 
   new { onclick = "return confirm('Are you sure you wish to delete this article?');" })

现在,我想将@Localized.AreYouSure字符串放入返回确认部分。我怎样才能做到这一点。

4

1 回答 1

3

我想这就是你想要/的意思:

@Html.ActionLink("Delete", "Delete",
   new { id = item.Id },
   new { onclick = "return confirm('" + Localized.AreYouSure + "');" })
于 2012-08-20T17:46:39.570 回答