/ Published in: C#
The resource file stores items as name-value pair.
To get string values from the resource files (.resx) added in your project, use the following code.
To get string values from the resource files (.resx) added in your project, use the following code.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/* The resource file stores items as name-value pair. To get string values from the resource files (.resx) added in your project, use the following code. */ //Name Spaces Required using System.Resources; using System.Reflection; // Create the resource manager. Assembly assembly = this.GetType().Assembly; //ResFile.Strings -> <Namespace>.<ResourceFileName i.e. Strings.resx> // Load the value of string value for Client strClientName = resman.GetString("Client");