Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
What’s the use of resource manager class
What’s the use of resource manager class?
✍: Guest
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, 5652👍, 0💬
Popular Posts:
What Articles Have You Read about JUnit? There are a number of JUnit articles that you should read: ...
What Happens If a Hyper Link Points to a Music File? - XHTML 1.0 Tutorials - Understanding Hyper Lin...
Advantages of a macro over a function? Macro gets to see the Compilation environment, so it can expa...
Can you explain project life cycle ? Figure :- 12.2 Life cycle of a project There are five stages of...
What is the difference between CALL_FORM, NEW_FORM and OPEN_FORM? CALL_FORM: start a new form and pa...