Resources on app_globalresource

0

I have a class library where I added a resx file, does anyone know how I can at runtime put this resx on app_globalresource so that it is available in all my app web mvc ?

    
asked by anonymous 01.04.2014 / 13:33

1 answer

1

Luciano you can add the Resource path to your masterpage

You can make your resource público and then use it as follows

@MyResources = Projeto.DiretorioDeResx.Resources.Strings
//Projeto.DiretorioDeResx.Resources.Strings <- onde Strings é o nome do resource (String.resx), e o resto é o caminho(namespace) do arquivo.

@Html.ActionLink(MyResources.Novo,"Create");
    
01.04.2014 / 18:42