如何在mvc asp.net的剃刀视图中使用本地化? [英] How can use localization in razor view of mvc asp.net ?

查看:76
本文介绍了如何在mvc asp.net的剃刀视图中使用本地化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我对localizaiotn有疑问。我使用asp.net mvc解决方案。我使用以下代码与本地化部分。





Hi All,
I have a problem regarding localizaiotn. i use asp.net mvc solution. i have use following code with localization part.


@Ajax.ActionLink("@Html.Localize('caseAction_backToIssuedList')", "LoadDebtorInfoBack",
                        new
                        {
                            debtorRno = Model[0].DebtorRno
                        },
                        new AjaxOptions
                        {
                            HttpMethod = "GET",
                            OnBegin = "stopPreLoader",
                            OnSuccess = "stopPreLoader",
                            OnFailure = "stopPreLoader",
                            UpdateTargetId = "mainContent"
                        },  new { @class = "btn btn-default" })







以上链接显示在网页上,如@ Html.Localize('caseAction_backToIssuedList'),而不是正确。它应显示为返回列表。



我该如何解决这个问题?请帮我。这吃饭可能需要2天。



谢谢大家。



我尝试了什么:



我已经尝试了两天而且浪费了我的最后两天。




Above link is display on the web page like "@Html.Localize('caseAction_backToIssuedList')" and is not correct. It shoud be displayed as "Back to List".

How can i solve this? Please help me. This eat may 2 days.

Thanks all.

What I have tried:

I have tried two days and wasted my last two days for this.

推荐答案

最后我得到了答案



finally i got the answer

@Ajax.ActionLink(""+@Html.Localize("caseAction_backToIssuedList")+"", "LoadDebtorInfoBack",


这篇关于如何在mvc asp.net的剃刀视图中使用本地化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆