| Author: sourirajan saravanan 10 Jul 2006 | Member Level: Gold | Rating: Points: 2 |
Resource files : ==================
Resource files are the files containing data that is logically deployed with an application. These files can contain data in a number of formats including strings, images and persisted objects. It has the main advantage of if we store data in these files then we don't need to compile these if the data get changed. In .NET we basically require them storing culture specific information's by localizing application's resources. You can deploy your resources using satellite assemblies.
|
| Author: vishal 10 Jul 2006 | Member Level: Gold | Rating: Points: 2 |
try the following link: http://www.sliver.com/dotnet/articles/resinweb.aspx
|
| Author: Mahendrakar R Kumar 15 Oct 2008 | Member Level: Silver | Rating: Points: 5 |
Visual Studio.NET makes it very easy to use resource files, so why not take advantage of them? You can store just about anything in them, including strings, images and persisted objects, but the most useful for web apps is strings. I was originally using them for error message management, but realized that they could offer more, especially in a text-intensive application where having packaged units might be beneficial. Another advantage is their read-only nature; people (ie. clients) can’t modify the contents unless you provide them with an application that writes satellite assemblies.
|
| Author: Monalisa Behera 05 Nov 2008 | Member Level: Bronze | Rating: Points: 6 |
Resource Files are most benificial while developing multilingual Web applications. This feature has been included in ASP.Net 2.0, which provides a declarative model for Resource handling through Resource Expressions (Sub-feature of the overall feature). ASP.NET v2.0 provides automatic support for resource (RESX or RESOURCE) files that follow a specific naming convention and that reside in specialized folders within the application. Hence we can add resource files without any compilation step or satellite assemblies. This enables the developer to provide resources that can be scoped to a page or an application. The ASP.NET runtime uses the .NET Framework ResourceManager to perform resources lookup. There are 2 types of Resouce files : 1.Global Resource file : This file is present in a specialized folder called /App_GlobalResources, located at the root of the application. All pages, user-controls, etc. can access these resources, so they typically are used as shared resources. The resources which should be available throughout the application are stored in this file. 2.Local Resource file : These files are present in /App_LocalResources folder. These files follow the naming convention of the associated page, user-control, or master-page, along with the culture definition. These files are only accessible by the associated page. I hope this information will be helpful to you.
|
| Author: Ashwini Rupert 06 Nov 2008 | Member Level: Diamond | Rating: Points: 4 |
Hi,
Resource files are used when you create a multi-lingual application. These are files with extension .resx
They contain a key and a value field. The Key is used to identify which resource needs to be replaced by the language string.
Regards, Ashwini
|
| Author: pavitha 17 Nov 2008 | Member Level: Bronze | Rating: Points: 5 |
* A resource file is a XML file that contains the strings that we want to
a. Translate into different languages.
b. Can be updated dynamically so that user themselves can modify values in resource files once the application is deployed on the server without re-compiling the entire application itself.
* The resource file contains key / value pairs. * Each pair is an individual resource. * Key names are not case sensitive.
|
| Author: amarababu naragam 18 Nov 2008 | Member Level: Gold | Rating: Points: 4 |
Talking about windows APP Resource files are used to in the deployment process. When ever the client needs the data which is to be frequently changed that data files will be converted to resource files. The data files will be converted to resource files with the help of resgen utility which is microsoft utility.again these files are converted tosatillite assemblies.
|
| Author: Deepika Haridas 21 Nov 2008 | Member Level: Diamond | Rating: Points: 5 |
A resource file may contain a collection of icons, menus, dialog boxes, strings tables, user-defined binary data and other types of items.
Once compiled into a suitable format, a resource file can be embedded directly into an executable or DLL file, producing a single EXE or DLL containing both code and resources. At run-time, the application can use the resource items in the embedded file. The process of creating a resource is straightforward, and is similar to compiling a PowerBASIC program.
|