Answer Posted / mithun
Call the GetLocalResourceObject or GetGlobalResourceObject method to read specific resources from a global or local resource file
The GetGlobalResourceObject method takes the name of a resource class and the resource ID. The class name is based on the .resx file name. For example, the file WebResources.resx, and all associated localized files, are referenced by the class name WebResources.
The GetLocalResourceObject method takes a resource name representing a ResourceKey property.
Button1.Text = GetLocalResourceObject("Button1.Text").ToString();
Button2.Text = (String)GetGlobalResourceObject(
"WebResourcesGlobal", "Button2.Text");
A local default resource file stored in the special App_LocalResources folder is named according to the ASP.NET page. For example, if the following code is used in a Default.aspx page, the resource file must be named Default.aspx.resx. For this example, add a string resource to this file named Button1.Text with the value "Found Resources".
A global default resource file that is stored in the special App_GlobalResources folder is named WebResourcesGlobal.resx. Add a string resource named LogoUrl with the value "Found Resources".
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is form and meaning?
Which event occurs when a user drags an item in a treeview or listview control?
Which method of the messagebox class is used to display a message in the message box?
What is form based application?
Which command prompt utility is used to convert a resource file from the text format into the binary format?
What is a fillable form?
Suppose I am implementing one windows form. I am inserting some values into ms access. In that table 5 columns there. But I want to insert three columns only. When I am clicking another button then other two values also insert into that table?
Where is system windows forms dll?
What is a windows form application?
How to split a column header in gridview using c#.net?
Which property is used to specify the use of an element in the user interface and reports it to the accessibility aids?
Which window allows viewing the resources of the servers, such as services, processes and the event log?
Explain the difference between listbox and combo box?
What is form and its uses?
What are controls in windows forms?