Use of resource manager class, DOT NET Programming

What's the use of resource manager class?

The ResourceManager class helps us to read the resource files and get the values by using key. At First you require to create the object of resource manager. You need to specify the resource name & the assembly in the constructor.

private ResourceManager objResourceManager = new ResourceManager("Globalization.resource",System.Reflection.Assembly.GetExecutingAssembly());

Once the resource manager is inhabited with details you can then use the GetString function to get by key. For illustrate in the below code snippet we are using the "cmdAddNew" key to get the value for button "cmdAddNew".

cmdAddNew.Text = objResourceManager.GetString("cmdAddNew");

Posted Date: 9/25/2012 3:47:32 AM | Location : United States







Related Discussions:- Use of resource manager class, Assignment Help, Ask Question on Use of resource manager class, Get Answer, Expert's Help, Use of resource manager class Discussions

Write discussion on Use of resource manager class
Your posts are moderated
Related Questions
What is the use of connection object? The connection objects are used to connect a data to the Command object. 1)An OleDbConnection object is used with the  OLE-DB provider

Project Description: We require an expert developer to work on several projects for our company. You will be managed by our senior developer. Required - MUST be proficient in

What is the difference between Server.Transfer and response.Redirect? The difference  between the Server.Transfer and the response.Redirect them are as follows:- 1)Response.

Passport authentication A centralized service given by Microsoft, offers a single logon point for clients. Unauthenticated users are redirected to the Passport site

Project Description: I am seeking software that can do the subsequent: 1. Check position for a URL in Google, Bing, Yahoo. 2. Check position for a Youtube video in Youtube

What is cloud computing? The cloud computing is the computing which is completely based on the Internet. It can also be explained as the next stage in the evolution of the Inte

Advertizing Project Description: I am preparing a MLM business. I can need direct mailing and coupon books as a product in my website. Skills required are .NET, C# Program

What is the difference among a toolstrip drop-down button and a toolstrip split button? The difference among a toolstrip drop-down button and a toolstrip split button is that a

What is the use of DataView? User-defined view of a table is contained in a DataView. A complete table or a small section of table depending on some criteria can be shown by an

This is a project specifically made for shirohime. Skills required: .NET, Fashion Design, Virtual Assistant