0

I would like to display a link with Html.ActionLink.

<%= Html.ActionLink("HOME", "Index") %>

Instead of using the word "HOME", I would like to use string from resource file because I need multiple languages.

<%$ Resources:Site, MenuHome %>

In this case, how to nested these tags? Thanks!

1 Answer 1

1
<%= Html.ActionLink(Resources.Site, "Index") %>

which assumes that you have a Resources.resx file in the App_GlobalResources special folder and a Site key inside it.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.