What’s the use of resource manager class
What’s the use of resource manager class?
ResourceManager class helps us to read the resource files and get the values using key.
First you need to create the object of resource manager. You need to specify the resource name and the assembly in the constructor.
private ResourceManager objResourceManager = new ResourceManager("Globalization.resource",System.Reflection.Assembly.GetExecutingAssembly());
Once the resource manager is populated with details you can then use the GetString function to get by key. For instance in the below code snippet we are using the
“cmdAddNew” key to get the value for button “cmdAddNew”.
cmdAddNew.Text = objResourceManager.GetString("cmdAddNew");
2007-11-01, 4990👍, 0💬
Do events have return type ? No, events do not have return type.
Can you explain in GSC and VAF in function points? In GSC (General System Characteristic) there are ...
Can a variable be both const and volatile? Yes. The const modifier means that this code cannot chang...
How To Merge Cells in a Column? - XHTML 1.0 Tutorials - Understanding Tables and Table Cells If you ...
What is the difference between mysql_fetch_object() and mysql_fetch_array() functions in PHP? mysql_...