473,379 Members | 1,191 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

what are aspx.resx files for?

Hi,

When I add a webform, VS generates three files:

WebForm1.aspx
WebForm1.aspx.cs (could also be "WebForm1.aspx.vb" I guess)
WebForm1.aspx.resx

What is that last file for? How can I use it?
I understand the use of (but haven't used yet..) the "stand alone" resource
files
but have not been able to find a reference to this webform-specific file.
Hans Kesting
Nov 18 '05 #1
6 9739
Hi Hans,

The most common use of resource files is to hold localization information
so that you can present different versions of your application depending on
the locale. However, there are other uses as well.

http://samples.gotdotnet.com/quickst...urcefiles.aspx

Jim Cheshire, MCSE, MCSD [MSFT]
ASP.NET
Developer Support
ja******@online.microsoft.com

This post is provided as-is with no warranties and confers no rights.

--------------------
From: "Hans Kesting" <ne***********@spamgourmet.com>
Subject: what are aspx.resx files for?
Date: Mon, 9 Feb 2004 10:41:14 +0100
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <#C**************@TK2MSFTNGP12.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.aspnet
NNTP-Posting-Host: 62.166.159.254
Path: cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTN GP08.phx.gbl!TK2MSFTNGP12.
phx.gblXref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.framework.aspnet:208516
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

Hi,

When I add a webform, VS generates three files:

WebForm1.aspx
WebForm1.aspx.cs (could also be "WebForm1.aspx.vb" I guess)
WebForm1.aspx.resx

What is that last file for? How can I use it?
I understand the use of (but haven't used yet..) the "stand alone" resource
files
but have not been able to find a reference to this webform-specific file.
Hans Kesting


Nov 18 '05 #2
Yes, I know.

You can instantiate a ResourceManager, that you point to a set of resource
files,
(for the different supported cultures). Then it is possible te retrieve
texts and
binary information as specific as possible for the current culture.

However, the question was (or was supposed to be, might have been unclear):
how can I use specifically the aspx.resx files that are generated
automatically?
Just as "regular" resource files (add more of those files for the supported
cultures,
instantiate a ResourceManager, point it to the set of resource files, and
use it
for every text that is culture specific; in short: add a lot of coding)
or is there any direct support built-in, which requires (almost) no coding?
(I can imagine a feature where label-texts and so on are automatically
replaced by a text from the resource, if the label-text happens to be an
existing resource-label)
Hans Kesting
"Jim Cheshire [MSFT]" <ja******@online.microsoft.com> wrote in message
news:l9**************@cpmsftngxa07.phx.gbl...
Hi Hans,

The most common use of resource files is to hold localization information
so that you can present different versions of your application depending on the locale. However, there are other uses as well.

http://samples.gotdotnet.com/quickst...urcefiles.aspx

Jim Cheshire, MCSE, MCSD [MSFT]
ASP.NET
Developer Support
ja******@online.microsoft.com

This post is provided as-is with no warranties and confers no rights.

--------------------
From: "Hans Kesting" <ne***********@spamgourmet.com>
Subject: what are aspx.resx files for?
Date: Mon, 9 Feb 2004 10:41:14 +0100
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <#C**************@TK2MSFTNGP12.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.aspnet
NNTP-Posting-Host: 62.166.159.254
Path:

cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTN GP08.phx.gbl!TK2MSFTNGP12. phx.gbl
Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.framework.aspnet:208516X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

Hi,

When I add a webform, VS generates three files:

WebForm1.aspx
WebForm1.aspx.cs (could also be "WebForm1.aspx.vb" I guess)
WebForm1.aspx.resx

What is that last file for? How can I use it?
I understand the use of (but haven't used yet..) the "stand alone" resourcefiles
but have not been able to find a reference to this webform-specific file.
Hans Kesting

Nov 18 '05 #3
Hans,

I am really not following you here. Can you explicitly indicate what you
mean by "use"?

Jim Cheshire, MCSE, MCSD [MSFT]
ASP.NET
Developer Support
ja******@online.microsoft.com

This post is provided as-is with no warranties and confers no rights.

--------------------
From: "Hans Kesting" <ne***********@spamgourmet.com>
References: <#C**************@TK2MSFTNGP12.phx.gbl> <l9**************@cpmsftngxa07.phx.gbl>Subject: Re: what are aspx.resx files for?
Date: Tue, 10 Feb 2004 11:41:04 +0100
Lines: 85
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <uE*************@tk2msftngp13.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.aspnet
NNTP-Posting-Host: 62.166.159.254
Path: cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTN GXA05.phx.gbl!TK2MSFTNGP08
..phx.gbl!tk2msftngp13.phx.gblXref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.framework.aspnet:208840
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

Yes, I know.

You can instantiate a ResourceManager, that you point to a set of resource
files,
(for the different supported cultures). Then it is possible te retrieve
texts and
binary information as specific as possible for the current culture.

However, the question was (or was supposed to be, might have been unclear):
how can I use specifically the aspx.resx files that are generated
automatically?
Just as "regular" resource files (add more of those files for the supported
cultures,
instantiate a ResourceManager, point it to the set of resource files, and
use it
for every text that is culture specific; in short: add a lot of coding)
or is there any direct support built-in, which requires (almost) no coding?
(I can imagine a feature where label-texts and so on are automatically
replaced by a text from the resource, if the label-text happens to be an
existing resource-label)
Hans Kesting
"Jim Cheshire [MSFT]" <ja******@online.microsoft.com> wrote in message
news:l9**************@cpmsftngxa07.phx.gbl...
Hi Hans,

The most common use of resource files is to hold localization information
so that you can present different versions of your application depending

on
the locale. However, there are other uses as well.

http://samples.gotdotnet.com/quickst...urcefiles.aspx

Jim Cheshire, MCSE, MCSD [MSFT]
ASP.NET
Developer Support
ja******@online.microsoft.com

This post is provided as-is with no warranties and confers no rights.

--------------------
>From: "Hans Kesting" <ne***********@spamgourmet.com>
>Subject: what are aspx.resx files for?
>Date: Mon, 9 Feb 2004 10:41:14 +0100
>Lines: 17
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>Message-ID: <#C**************@TK2MSFTNGP12.phx.gbl>
>Newsgroups: microsoft.public.dotnet.framework.aspnet
>NNTP-Posting-Host: 62.166.159.254
>Path:

cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP12

Nov 18 '05 #4
I think the question really is "WHY are these files generated along with
aspx and ascx files?".
It's probably not just to take up space so there is a reason why they are
generated.
WHAT is that reason?
Does some component inside the asp.net system (or maybe the IDE, because
that's the one
generating these files) need these files?
If so, what components and for what use?

And along with the above questions there is "can *I* change anything there
to
do something usefull within my application"?

Hans Kesting
"Jim Cheshire [MSFT]" <ja******@online.microsoft.com> wrote in message
news:04**************@cpmsftngxa07.phx.gbl...
Hans,

I am really not following you here. Can you explicitly indicate what you
mean by "use"?

Jim Cheshire, MCSE, MCSD [MSFT]
ASP.NET
Developer Support
ja******@online.microsoft.com

This post is provided as-is with no warranties and confers no rights.

--------------------
From: "Hans Kesting" <ne***********@spamgourmet.com>
References: <#C**************@TK2MSFTNGP12.phx.gbl> <l9**************@cpmsftngxa07.phx.gbl>
Subject: Re: what are aspx.resx files for?
Date: Tue, 10 Feb 2004 11:41:04 +0100
Lines: 85
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <uE*************@tk2msftngp13.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.aspnet
NNTP-Posting-Host: 62.166.159.254
Path:

cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTN GXA05.phx.gbl!TK2MSFTNGP08 phx.gbl!tk2msftngp13.phx.gbl
Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.framework.aspnet:208840X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

Yes, I know.

You can instantiate a ResourceManager, that you point to a set of resourcefiles,
(for the different supported cultures). Then it is possible te retrieve
texts and
binary information as specific as possible for the current culture.

However, the question was (or was supposed to be, might have been unclear):how can I use specifically the aspx.resx files that are generated
automatically?
Just as "regular" resource files (add more of those files for the supportedcultures,
instantiate a ResourceManager, point it to the set of resource files, and
use it
for every text that is culture specific; in short: add a lot of coding)
or is there any direct support built-in, which requires (almost) no coding?(I can imagine a feature where label-texts and so on are automatically
replaced by a text from the resource, if the label-text happens to be an
existing resource-label)
Hans Kesting
"Jim Cheshire [MSFT]" <ja******@online.microsoft.com> wrote in message
news:l9**************@cpmsftngxa07.phx.gbl...
Hi Hans,

The most common use of resource files is to hold localization information so that you can present different versions of your application
dependingon
the locale. However, there are other uses as well.

http://samples.gotdotnet.com/quickst...urcefiles.aspx

Jim Cheshire, MCSE, MCSD [MSFT]
ASP.NET
Developer Support
ja******@online.microsoft.com

This post is provided as-is with no warranties and confers no rights.

--------------------
>From: "Hans Kesting" <ne***********@spamgourmet.com>
>Subject: what are aspx.resx files for?
>Date: Mon, 9 Feb 2004 10:41:14 +0100
>Lines: 17
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>Message-ID: <#C**************@TK2MSFTNGP12.phx.gbl>
>Newsgroups: microsoft.public.dotnet.framework.aspnet
>NNTP-Posting-Host: 62.166.159.254
>Path:


cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP12

Nov 18 '05 #5
Hans,

The IDE uses the resource files to store internal information regarding the
Server Controls on the Web form. You should not add your own information
into the auto-generated resource files.

If you want to use resource files in your application, you should create
your own.

Jim Cheshire, MCSE, MCSD [MSFT]
ASP.NET
Developer Support
ja******@online.microsoft.com

This post is provided as-is with no warranties and confers no rights.

--------------------
From: "Hans Kesting" <ne***********@spamgourmet.com>
References: <#C**************@TK2MSFTNGP12.phx.gbl> <l9**************@cpmsftngxa07.phx.gbl>
<uE*************@tk2msftngp13.phx.gbl>
<04**************@cpmsftngxa07.phx.gbl>Subject: Re: what are aspx.resx files for?
Date: Thu, 12 Feb 2004 16:42:56 +0100
Lines: 120
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <#n**************@TK2MSFTNGP11.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.aspnet
NNTP-Posting-Host: 62.166.159.254
Path: cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTN GXA05.phx.gbl!TK2MSFTNGP08
.phx.gbl!TK2MSFTNGP11.phx.gblXref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.framework.aspnet:209614
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

I think the question really is "WHY are these files generated along with
aspx and ascx files?".
It's probably not just to take up space so there is a reason why they are
generated.
WHAT is that reason?
Does some component inside the asp.net system (or maybe the IDE, because
that's the one
generating these files) need these files?
If so, what components and for what use?

And along with the above questions there is "can *I* change anything there
to
do something usefull within my application"?

Hans Kesting
"Jim Cheshire [MSFT]" <ja******@online.microsoft.com> wrote in message
news:04**************@cpmsftngxa07.phx.gbl...
Hans,

I am really not following you here. Can you explicitly indicate what you
mean by "use"?

Jim Cheshire, MCSE, MCSD [MSFT]
ASP.NET
Developer Support
ja******@online.microsoft.com

This post is provided as-is with no warranties and confers no rights.

--------------------
>From: "Hans Kesting" <ne***********@spamgourmet.com>
>References: <#C**************@TK2MSFTNGP12.phx.gbl> <l9**************@cpmsftngxa07.phx.gbl>
>Subject: Re: what are aspx.resx files for?
>Date: Tue, 10 Feb 2004 11:41:04 +0100
>Lines: 85
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>Message-ID: <uE*************@tk2msftngp13.phx.gbl>
>Newsgroups: microsoft.public.dotnet.framework.aspnet
>NNTP-Posting-Host: 62.166.159.254
>Path:

cpmsftngxa07.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFT NGXA05.phx.gbl!TK2MSFTNGP0

8
phx.gbl!tk2msftngp13.phx.gbl
>Xref: cpmsftngxa07.phx.gblmicrosoft.public.dotnet.framework.aspnet:208840 >X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
>
>Yes, I know.
>
>You can instantiate a ResourceManager, that you point to a set ofresource >files,
>(for the different supported cultures). Then it is possible te retrieve
>texts and
>binary information as specific as possible for the current culture.
>
>However, the question was (or was supposed to be, might have beenunclear): >how can I use specifically the aspx.resx files that are generated
>automatically?
>Just as "regular" resource files (add more of those files for thesupported >cultures,
>instantiate a ResourceManager, point it to the set of resource files, and >use it
>for every text that is culture specific; in short: add a lot of coding)
>or is there any direct support built-in, which requires (almost) nocoding? >(I can imagine a feature where label-texts and so on are automatically
>replaced by a text from the resource, if the label-text happens to be an
>existing resource-label)
>
>
>Hans Kesting
>
>
>"Jim Cheshire [MSFT]" <ja******@online.microsoft.com> wrote in message
>news:l9**************@cpmsftngxa07.phx.gbl...
>> Hi Hans,
>>
>> The most common use of resource files is to hold localizationinformation >> so that you can present different versions of your applicationdepending >on
>> the locale. However, there are other uses as well.
>>
>> http://samples.gotdotnet.com/quickst...urcefiles.aspx
>>
>> Jim Cheshire, MCSE, MCSD [MSFT]
>> ASP.NET
>> Developer Support
>> ja******@online.microsoft.com
>>
>> This post is provided as-is with no warranties and confers no rights.
>>
>> --------------------
>> >From: "Hans Kesting" <ne***********@spamgourmet.com>
>> >Subject: what are aspx.resx files for?
>> >Date: Mon, 9 Feb 2004 10:41:14 +0100
>> >Lines: 17
>> >X-Priority: 3
>> >X-MSMail-Priority: Normal
>> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>> >Message-ID: <#C**************@TK2MSFTNGP12.phx.gbl>
>> >Newsgroups: microsoft.public.dotnet.framework.aspnet
>> >NNTP-Posting-Host: 62.166.159.254
>> >Path:
>>


cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSF TNGP08.phx.gbl!TK2MSFTNGP1

2


Nov 18 '05 #6
OK, thanks!

"Jim Cheshire [MSFT]" <ja******@online.microsoft.com> wrote in message
news:PW**************@cpmsftngxa07.phx.gbl...
Hans,

The IDE uses the resource files to store internal information regarding the Server Controls on the Web form. You should not add your own information
into the auto-generated resource files.

If you want to use resource files in your application, you should create
your own.

Jim Cheshire, MCSE, MCSD [MSFT]
ASP.NET
Developer Support
ja******@online.microsoft.com

This post is provided as-is with no warranties and confers no rights.

Nov 18 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Fabrizio Maltese | last post by:
Hi, I created a project with a page in aspx. How can I put the page in my WebSite, that is not on my server? Do i need a setup project that goes on the Web Server? Thank you, Fabrizio
2
by: qh0st | last post by:
Hi all. I have an windows form application that will have multiple language ..resx files per form. Is there anyway I can bundle these .resx files into ONE .dll per form? If not, do you have any...
2
by: Paul | last post by:
I have plugged the ExceptionManagement app block into our framework and have a question about resource files. ExceptionManagerText.resx is one of resource files in the project. When you look at...
3
by: JD | last post by:
I have a web site built with asp.net and I have been told that the only files I need on the webserver are the files in the bin folder and aspx files, I don't need the .vb or the .resx files on the...
3
by: HK | last post by:
I have a blank site on a remote server with no Front Page Server Extensions. I need to deploy a web service (one asmx page) and one web page (aspx), both of which use one class file (class.vb). ...
1
by: John M | last post by:
Hello, In an *.sln solution, I have added a project (VB .NET), and under the project, I have added some files. I did : right click + add existing file (I had the existing files : main.aspx,...
1
by: theintrepidfox | last post by:
Dear Group Just wonder if someone can point me in the right direction please? I have a label control and want to assign a string in a resource. I'm sure I'm on the right track but it doesn't...
2
by: David++ | last post by:
Hi folks, Just been having a play with C# Web Application project. So far I've just created a single Web Form with some text and links. I now want to upload the Web Form to my server space. The...
2
by: WT | last post by:
Hello, Could we use 'Embedded resources' with resx files that contain text resources used in aspx pages with the syntaxe: Text="<%$ Resources:ResourcesMy,KEY1 %>" I tryed removing the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.