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
?
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
?
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");