0
I have a class library where I added a file resx, someone knows how I can in Runtime put this resx in app_globalresource to make it available in all my app web mvc?
0
I have a class library where I added a file resx, someone knows how I can in Runtime put this resx in app_globalresource to make it available in all my app web mvc?
1
Luciano you can add the Resource path to your masterpage
You can make your re-source 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");
Browser other questions tagged c# asp.net-mvc resources
You are not signed in. Login or sign up in order to post.
If it’s a library class, why was it added as Resource? I don’t understand.
– Leonel Sanches da Silva