How to add resources during runtime
Answer / 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 |
Are windows forms still used?
i already displaying one datagrid. now i want to make change to particular column header i.e i want to split that column header and it includes one more header.... write a code for that in windows application using C#.net
How many nuber of controls are there in form?
What is the need of z-order method?
Is form action required?
How to redirect a user to new page in ASP.NET without making a round-trip to the browser?
which property is used to change to some value to access a identity column in datacontrols?
What is a windows based application?
Which method of the messagebox class is used to display a message in the message box?
What is the synonym of form?
How do you customize the column content inside the datagrid?
How do I change the console application in windows?