Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All,
I have a problem regarding localizaiotn. i use asp.net mvc solution. i have use following code with localization part.


C#
@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" })



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.
Posted
Updated 17-Feb-16 19:32pm
v2
Comments
F-ES Sitecore 17-Feb-16 6:02am    
Try;

@Ajax.ActionLink(Html.Localize("caseAction_backToIssuedList"), "LoadDebtorInfoBack",
Richard Deeming 17-Feb-16 7:48am    
Looks like the answer to me. You should post this as a solution. :)
Sinisa Hajnal 17-Feb-16 6:04am    
Remove the quotes around html localize, it is an instruction, not a string.

1 solution

finally i got the answer

C#
@Ajax.ActionLink(""+@Html.Localize("caseAction_backToIssuedList")+"", "LoadDebtorInfoBack",
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900