Using Resources In .Net

Create .resx file and use this code:

string myValue = Resources.Messages.ResourceManager.GetString(myKey);

Where in resource file:

<data name=myKey xml:space=preserve>

  <value>myValue</value>

</data>

Advertisements