dotnetspider.com
Login Login    Register      

TutorialsForumCareer DevelopmentResourcesReviewsJobsInterviewCommunitiesProjectsTraining

Subscribe to Subscribers
Talk to Webmaster
Tony John

Facebook
Google+
Twitter
LinkedIn
Online MembersPhagu Mahato
More...
Join our online Google+ community for Bloggers, Content Writers and Webmasters




Forums » .NET » .NET »

what is a resource file...


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




Hi all,

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

atchyut




Responses

#62430    Author: sourirajan saravanan      Member Level: Gold      Member Rank: 238     Date: 10/Jul/2006   Rating: 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.



 
#62432    Author: vishal       Member Level: Gold      Member Rank: 509     Date: 10/Jul/2006   Rating: 2 out of 52 out of 5     Points: 2

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



 
#307049    Author: Mahendrakar R Kumar      Member Level: Gold      Member Rank: 2137     Date: 15/Oct/2008   Rating: 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.






 
#313571    Author: Monalisa Behera      Member Level: Bronze      Member Rank: 0     Date: 05/Nov/2008   Rating: 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.



 
#313653    Author: Ashwini Rupert      Member Level: Gold      Member Rank: 159     Date: 06/Nov/2008   Rating: 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



 
#317519    Author: pavitha      Member Level: Bronze      Member Rank: 0     Date: 17/Nov/2008   Rating: 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.



 
#318264    Author: Sravya      Member Level: Gold      Member Rank: 477     Date: 18/Nov/2008   Rating: 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.



 
#319395    Author: Deepika Haridas      Member Level: Gold      Member Rank: 7     Date: 21/Nov/2008   Rating: 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 - Sr. Editor
Webmaster, GujaratSpider
http://angeldeeps.blogspot.com/
"Experience is the name everyone gives to his mistakes"
GujaratSpider - Post and Earn



 
#343644    Author: LOGESHWARAN      Member Level: Gold      Member Rank: 0     Date: 05/Feb/2009   Rating: 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



 
#347188    Author: sasikala      Member Level: Gold      Member Rank: 0     Date: 14/Feb/2009   Rating: 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.



 
#349072    Author: Bhaveetha      Member Level: Gold      Member Rank: 0     Date: 19/Feb/2009   Rating: 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!!!



 
#349589    Author: Durva      Member Level: Gold      Member Rank: 844     Date: 21/Feb/2009   Rating: 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:

Related Messages



Follow us on Twitter: https://twitter.com/dotnetspider

Active Members
TodayLast 7 Daysmore...

Awards & Gifts
Email subscription
  • .NET Jobs
  • .NET Articles
  • .NET Forums
  • Articles Rss Feeds
    Forum Rss Feeds


    About Us    Contact Us    Copyright    Privacy Policy    Terms Of Use    Revenue Sharing sites   Advertise   Talk to Tony John
    Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
    2005 - 2012 All Rights Reserved.
    .NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
    Articles, tutorials and all other content offered here is for educational purpose only.
    We are not associated with Microsoft or its partners.