【问题标题】:Localized string message inside jsjs中的本地化字符串消息
【发布时间】:2012-08-20 17:40:43
【问题描述】:

我有这样的 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 字符串放入返回确认部分。我该怎么做。

【问题讨论】:

    标签: javascript asp.net-mvc html.actionlink


    【解决方案1】:

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

    @Html.ActionLink("Delete", "Delete",
       new { id = item.Id },
       new { onclick = "return confirm('" + Localized.AreYouSure + "');" })
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-11-22
      • 1970-01-01
      • 1970-01-01
      • 2019-06-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多