How do I get the name that’s in Resources for the field names?

Asked

Viewed 27 times

1

When I have an application using Resources, and on my screen I have a text for example:

<section>
    <div id="banner">
        <h1> 
            Com você, aonde você for!
            <small> dicas sempre atualizadas.</small>
        </h1>
    </div>
</section>

How can I exchange this content through Resources? I can only change menu options this way:

<!--cabecalho do site-->
<header>

    <!--topo do site logotipo-->
    <div class="container">
        <img id="logotipo" src="~/Content/imagens/logo.png" alt="logotipo">
    </div>

    <!--topo do site linha do menu 01-->
    <div class="header-black">
        <div class="container">
            <ul class="pull-right">
                <li class="espanhol"> <a href="/Home/AlteraIdioma/?LinguagemAbreviada=es"></a> </li>
                <li class="ingles">   <a href="/Home/AlteraIdioma/?LinguagemAbreviada=en"></a> </li>
                <li class="portugues"> <a href="/Home/AlteraIdioma/?LinguagemAbreviada=pt"></a> </li>
            </ul>
        </div>
    </div>  <!--topo do site linha do menu 01-->
    <!--topo do site linha do menu 02-->
    <div class="container">
        <div class="row">

            <nav id="menu" class="pull-right">
                <ul>
                    <li>@Html.ActionLink(Projeto.WebSite.Resources.HomeText.lojavirtual, "Index", "Home")</li>
                    <li>@Html.ActionLink(Projeto.WebSite.Resources.HomeText.cadastro, "Index", "Home")</li>
                    <li>@Html.ActionLink(Projeto.WebSite.Resources.HomeText.contalogin, "Index", "Home")</li>
                </ul>
            </nav>
        </div>
    </div>      <!--topo do site linha do menu 02-->


</header>

1 answer

0


Just point to Resources, likewise:

<section>
    <div id="banner">
        <h1> 
            @Projeto.WebSite.Resources.HomeText.TituloPrincipal
            <small> @Projeto.WebSite.Resources.HomeText.TituloSecundario</small>
        </h1>
    </div>
</section>
  • you were great now, I really appreciate the help!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.