hi :) , i'm trying to make an asp.net control, that has an asp.net label, i want this label's text to be set according to the current language of the website,
is there a way like label.text=umbraco.dictionaryitems.Getbyname("itemName");
i know it's kinda fiction :D , but is there a way to set it automatically :)
Check out this post on Tim's blog, it explains how to use the dictionary items via umbraco.library:GetDictionaryItem("key"), and also has a method for setting the controls texts "automatically" - .net usercontrols and the umbraco dictionary
Hmm, works for me. Where are you getting this umbraco.dll from? You should get it from the binaries download on codeplex - the same one that sits in the /bin/ folder of your website.
Using langauge dictionary in asp.net control
hi :) , i'm trying to make an asp.net control, that has an asp.net label, i want this label's text to be set according to the current language of the website,
is there a way like label.text=umbraco.dictionaryitems.Getbyname("itemName");
i know it's kinda fiction :D , but is there a way to set it automatically :)
thanks :)
Hi,
Check out this post on Tim's blog, it explains how to use the dictionary items via umbraco.library:GetDictionaryItem("key"), and also has a method for setting the controls texts "automatically" - .net usercontrols and the umbraco dictionary
Hope this helps,
Tom
Hi tom, thank you, i tried this , but i don't know which library to refrence in order to use umbraco.library
i refrenced cms, businesslogic, but there's no .library in umbrac :)
thanks :)
You should just need to reference umbraco.dll
every time i refrence the umbraco.dll
the object can't be viewed in the object browser because it's not availble or not yet built please insure that the project is availble and built.
sorry i know i am bringing you a headache :)
Hmm, works for me. Where are you getting this umbraco.dll from? You should get it from the binaries download on codeplex - the same one that sits in the /bin/ folder of your website.
:( from the same source as you said, i don't know what's wrong with my visual studio :) .
anyways thanks a lot for your help :)
Not really sure what else to try :/ never had that problem.
Are you running VS2010? And configured to use .NET 4?
nop visual studio 2008 , ahhhh it's .net 4, while visual studio 2008 is .net 3.5 :X , thank you :D my bad , sorry :D
is working on a reply...