How to add new labels in labels.resx

Topics: ASP.NET 2.0, Business Logic Layer
Jan 20 at 1:32 PM
Edited Jan 20 at 1:33 PM
How do i add new labels in labels.resx?
I tried to write name: "testString" and value: "Test string" in the labels.resx file.
On editpage.cshtml i wrote: {{lbl.testString}}
In the view its blank. tried to clear cache and reload everything. i can insert a <p>tag and see it but the labels wont show.

what else do i need to do?
Jan 22 at 2:23 PM
Edited Jan 22 at 8:50 PM
It took me a while to figure this out, too:

You first need to add the label to the dictionary in App_Data/labels.txt.

labels.resx (and the country specific files in the App_GlobalResources folder) maps each label in labels.txt into a text value for display. You must have a corresponding record in labels.txt and labels.resx for it to be visible (and useable) in the code.
Marked as answer by promsys on 2/3/2017 at 12:44 AM
Feb 3 at 7:44 AM
Thanks :)