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 6 9736
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
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.gblXref: 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
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
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.gblXref: 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
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
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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
|
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...
|
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...
|
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...
|
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).
...
|
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,...
|
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...
|
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...
|
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...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
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...
| |