C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » .NET »

what is a resource file...


Posted Date: 09 Jul 2006      Posted By: Atchyut Kumar      Member Level: Bronze     Points: 2   Responses: 12




Hi all,

can anybody please explain me in detail about resource files. Thanks in advance

atchyut





Responses

Author: sourirajan saravanan    10 Jul 2006Member Level: GoldRating: 2 out of 52 out of 5     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 2006Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

try the following link:
http://www.sliver.com/dotnet/articles/resinweb.aspx



Author: Mahendrakar R Kumar    15 Oct 2008Member Level: GoldRating: 2 out of 52 out of 5     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.

Thanks & Regards,
Mahendrakar R Kumar.



Author: Monalisa Behera    05 Nov 2008Member Level: BronzeRating: 2 out of 52 out of 5     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 2008Member Level: DiamondRating: 2 out of 52 out of 5     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 2008Member Level: BronzeRating: 2 out of 52 out of 5     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: Sravya    18 Nov 2008Member Level: GoldRating: 2 out of 52 out of 5     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 2008Member Level: DiamondRating: 2 out of 52 out of 5     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.



Thanks & Regards,
Deepika
Editor

If U want to shine like a SUN..First U have to burn like the SUN!!
Need a Guide? Join my mentor program..



Author: LOGESHWARAN    05 Feb 2009Member Level: GoldRating: 2 out of 52 out of 5     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.

REGARDS
LOGESHWARAN.P
mailto: logesh_ajax@logeshwaran.co.cc



Author: sasikala    14 Feb 2009Member Level: GoldRating: 2 out of 52 out of 5     Points: 5

Explicit <%$ Resources:[filename prefix,]resource-key %>

The Explicit expression is used to define the value of a control property in declarative syntax, and the resource-key, which is required, is used to map to the value from the resource. The filename prefix parameter is optional, but the filename specifies the name of a resource file(s) that resides in the global resources folder.
Implicit <asp:Label ID="Label1" runat="server" meta:resourcekey="resource-key-prefix" />

The Implicit expression is used as an attribute on a control or object in declarative syntax and defines a resource-key-prefix, which is used to perform many property assignments for the control. The resource file contains many potential resource-keys of the general form resource-key-prefix.Property - for example, Label1KeyPrefix.Text and Label1KeyPrefix.Font-name. All resources are obtained from local resources only. You can think of the expressions as a short-hand notation for mapping one to many control properties without explicitly defining the properties in the page.



Author: Bhaveetha    19 Feb 2009Member Level: GoldRating: 2 out of 52 out of 5     Points: 4

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.
Types of Resources:

There are two types of resources

Local Resources
Global Resources

Regards,
Bhaveetha.

----------------------------------

Life is a game. Just Play it.
Enjoy every moment!!!



Author: Durva    21 Feb 2009Member Level: SilverRating: 2 out of 52 out of 5     Points: 3

hello,

Resource files are used to in the deployment process.A resource file is a XML file that contains the strings that we want toTranslate into different languages.

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.



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : what is difference between String and string(data type) in c#?
Previous : Horizontal Scroll Bar for a listview control
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use