Hello friends,
In a large asp.net project, I don't think it is a good idea for having one
common resource file containing all localized strings for the whole
application. I think a better approach would be to have individual resx
files for each form/user control.
My main problem is having difficulties in naming my resource file.
For example, suppose I have a web form called Items.aspx. I want to have a
resource file for it and name it Items.resx, but Visual Studio.net will show
an error during compilation mentioning...
Resources 'Items.aspx.res x' and 'Items.resx' have the same manifest resource
name '<Namespace>.It ems.resources'.
The reason for this error is cause Visual Studio.net will always create a
resource file called 'Items.aspx.res x' automatically. Even if I delete this
autogenerated file, Visual Studio.net will re-create it. So what is
happening is that 'Items.aspx.res x' and 'Items.resx' are both clashing.
How do I solve this issue because I would like to also have a resource file
in a french version named Items.fr-ca.resx.
I would also like to hear a discussion on what would be the best approach to
deal with multi-language resource files.
Thanks..
JK 4 5025
There are certain things where it is better to give in and do it the way MS
wants you to, which is the pageName.aspx.r esx, even if you have to delete
and then drop your file in with the same name. MS does listen to feedback
and will change things over time, but you are often stuck to begin with.
If you are really stuck on having the file Images.resx, here is an idea to
try. Not sure if it will work, but it is the best shot.
1. Open ProjectName.vbp roj (VB.NET) or ProjectName.csp roj (C#) in notepad
2. Find the name of the resx file (the default name pageName.aspx.r esx) and
change to the name you desire
3. Drop your file in the folder.
4. Open the project
The test will likely come when you add the French language file. I would do
this ASAP to see if this solution will work. If not, you are back to
pageName.aspx.r esx.
If it works, post a followup.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
*************** *************** *************** *************** ***
Think outside the box!
*************** *************** *************** *************** ***
"JollyK" <Jo****@email.c om> wrote in message
news:Oh******** ******@TK2MSFTN GP11.phx.gbl... Hello friends,
In a large asp.net project, I don't think it is a good idea for having one common resource file containing all localized strings for the whole application. I think a better approach would be to have individual resx files for each form/user control. My main problem is having difficulties in naming my resource file. For example, suppose I have a web form called Items.aspx. I want to have a resource file for it and name it Items.resx, but Visual Studio.net will
show an error during compilation mentioning... Resources 'Items.aspx.res x' and 'Items.resx' have the same manifest
resource name '<Namespace>.It ems.resources'.
The reason for this error is cause Visual Studio.net will always create a resource file called 'Items.aspx.res x' automatically. Even if I delete
this autogenerated file, Visual Studio.net will re-create it. So what is happening is that 'Items.aspx.res x' and 'Items.resx' are both clashing.
How do I solve this issue because I would like to also have a resource
file in a french version named Items.fr-ca.resx.
I would also like to hear a discussion on what would be the best approach
to deal with multi-language resource files.
Thanks..
JK
There are certain things where it is better to give in and do it the way MS
wants you to, which is the pageName.aspx.r esx, even if you have to delete
and then drop your file in with the same name. MS does listen to feedback
and will change things over time, but you are often stuck to begin with.
If you are really stuck on having the file Images.resx, here is an idea to
try. Not sure if it will work, but it is the best shot.
1. Open ProjectName.vbp roj (VB.NET) or ProjectName.csp roj (C#) in notepad
2. Find the name of the resx file (the default name pageName.aspx.r esx) and
change to the name you desire
3. Drop your file in the folder.
4. Open the project
The test will likely come when you add the French language file. I would do
this ASAP to see if this solution will work. If not, you are back to
pageName.aspx.r esx.
If it works, post a followup.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
*************** *************** *************** *************** ***
Think outside the box!
*************** *************** *************** *************** ***
"JollyK" <Jo****@email.c om> wrote in message
news:Oh******** ******@TK2MSFTN GP11.phx.gbl... Hello friends,
In a large asp.net project, I don't think it is a good idea for having one common resource file containing all localized strings for the whole application. I think a better approach would be to have individual resx files for each form/user control. My main problem is having difficulties in naming my resource file. For example, suppose I have a web form called Items.aspx. I want to have a resource file for it and name it Items.resx, but Visual Studio.net will
show an error during compilation mentioning... Resources 'Items.aspx.res x' and 'Items.resx' have the same manifest
resource name '<Namespace>.It ems.resources'.
The reason for this error is cause Visual Studio.net will always create a resource file called 'Items.aspx.res x' automatically. Even if I delete
this autogenerated file, Visual Studio.net will re-create it. So what is happening is that 'Items.aspx.res x' and 'Items.resx' are both clashing.
How do I solve this issue because I would like to also have a resource
file in a french version named Items.fr-ca.resx.
I would also like to hear a discussion on what would be the best approach
to deal with multi-language resource files.
Thanks..
JK
Hello Greg,
Your solution is very interesting, but it is not working because if I change
the name of the file in the .csproj(C#) file, VS.NET will recreate a brand
new file with aspx.resx extention.
"Cowboy (Gregory A. Beamer) [MVP]" <No************ @comcast.netNoS pamM> wrote
in message news:u8******** ******@TK2MSFTN GP11.phx.gbl... There are certain things where it is better to give in and do it the way
MS wants you to, which is the pageName.aspx.r esx, even if you have to delete and then drop your file in with the same name. MS does listen to feedback and will change things over time, but you are often stuck to begin with.
If you are really stuck on having the file Images.resx, here is an idea to try. Not sure if it will work, but it is the best shot.
1. Open ProjectName.vbp roj (VB.NET) or ProjectName.csp roj (C#) in notepad 2. Find the name of the resx file (the default name pageName.aspx.r esx)
and change to the name you desire 3. Drop your file in the folder. 4. Open the project
The test will likely come when you add the French language file. I would
do this ASAP to see if this solution will work. If not, you are back to pageName.aspx.r esx.
If it works, post a followup.
-- Gregory A. Beamer MVP; MCP: +I, SE, SD, DBA
*************** *************** *************** *************** *** Think outside the box! *************** *************** *************** *************** *** "JollyK" <Jo****@email.c om> wrote in message news:Oh******** ******@TK2MSFTN GP11.phx.gbl... Hello friends,
In a large asp.net project, I don't think it is a good idea for having
one common resource file containing all localized strings for the whole application. I think a better approach would be to have individual resx files for each form/user control. My main problem is having difficulties in naming my resource file. For example, suppose I have a web form called Items.aspx. I want to have
a resource file for it and name it Items.resx, but Visual Studio.net will show an error during compilation mentioning... Resources 'Items.aspx.res x' and 'Items.resx' have the same manifest resource name '<Namespace>.It ems.resources'.
The reason for this error is cause Visual Studio.net will always create
a resource file called 'Items.aspx.res x' automatically. Even if I delete this autogenerated file, Visual Studio.net will re-create it. So what is happening is that 'Items.aspx.res x' and 'Items.resx' are both clashing.
How do I solve this issue because I would like to also have a resource file in a french version named Items.fr-ca.resx.
I would also like to hear a discussion on what would be the best
approach to deal with multi-language resource files.
Thanks..
JK
Hello Greg,
Your solution is very interesting, but it is not working because if I change
the name of the file in the .csproj(C#) file, VS.NET will recreate a brand
new file with aspx.resx extention.
"Cowboy (Gregory A. Beamer) [MVP]" <No************ @comcast.netNoS pamM> wrote
in message news:u8******** ******@TK2MSFTN GP11.phx.gbl... There are certain things where it is better to give in and do it the way
MS wants you to, which is the pageName.aspx.r esx, even if you have to delete and then drop your file in with the same name. MS does listen to feedback and will change things over time, but you are often stuck to begin with.
If you are really stuck on having the file Images.resx, here is an idea to try. Not sure if it will work, but it is the best shot.
1. Open ProjectName.vbp roj (VB.NET) or ProjectName.csp roj (C#) in notepad 2. Find the name of the resx file (the default name pageName.aspx.r esx)
and change to the name you desire 3. Drop your file in the folder. 4. Open the project
The test will likely come when you add the French language file. I would
do this ASAP to see if this solution will work. If not, you are back to pageName.aspx.r esx.
If it works, post a followup.
-- Gregory A. Beamer MVP; MCP: +I, SE, SD, DBA
*************** *************** *************** *************** *** Think outside the box! *************** *************** *************** *************** *** "JollyK" <Jo****@email.c om> wrote in message news:Oh******** ******@TK2MSFTN GP11.phx.gbl... Hello friends,
In a large asp.net project, I don't think it is a good idea for having
one common resource file containing all localized strings for the whole application. I think a better approach would be to have individual resx files for each form/user control. My main problem is having difficulties in naming my resource file. For example, suppose I have a web form called Items.aspx. I want to have
a resource file for it and name it Items.resx, but Visual Studio.net will show an error during compilation mentioning... Resources 'Items.aspx.res x' and 'Items.resx' have the same manifest resource name '<Namespace>.It ems.resources'.
The reason for this error is cause Visual Studio.net will always create
a resource file called 'Items.aspx.res x' automatically. Even if I delete this autogenerated file, Visual Studio.net will re-create it. So what is happening is that 'Items.aspx.res x' and 'Items.resx' are both clashing.
How do I solve this issue because I would like to also have a resource file in a french version named Items.fr-ca.resx.
I would also like to hear a discussion on what would be the best
approach to deal with multi-language resource files.
Thanks..
JK
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jinlin |
last post by:
I found a interesting problem in C# and couldn't explain it.
The code to reproduce it is very simple:
1. Create a windows application in C#.
2. Listen to the activated event on the default form --- Form1.cs
3. Create a method DoUpdate() which will popup two dialog boxes "Dialog box
one" and "Dialog box two".
4. Call DoUpdate() in the activated event handling.
It will look like the following:
|
by: Simon Niederberger |
last post by:
Hi
I've written a Windows Service which has
- several (0-100) listeners threads which spawn worker threads based on
events, timers etc
- several (0-300) worker threads which handle data (message based) and
terminate after processing
I'm wondering what exactly happens when I stop the service. I don't see an
ThreadAbortedException, but I'm worried my worker threads might be
|
by: Leandro Berti via DotNetMonster.com |
last post by:
Hi All,
I wrote a code to do serial communication with an equipament.
When i use the code outside of threaded class it seens work properly,
but when i put inside a class and execute a thread in the first seconds the
communication is ok, later i receive read/write error.
I?ve been in MSDN site and there i discover that the read/write error is a
INVALID_HANDLE problem. But why??? I just create the serial communication
file and use it....
|
by: lucy |
last post by:
Hi,
I'm working on a multi-threading web application. I'm using
Application_Error event to write exception detail to windows event log
to help debug. It seems exception happened in the second thread doesn't
fire this event. I tried to use trace.write() method. It doesn't seem
work either. I'm out of idea.
Any help is highly appreciated.
Lucy
|
by: Aaron Smith |
last post by:
What is the best way to handle data in a multiple user environment? We
have forms that will allow users to add edit and delete data from a
table on SQL server. The data could be edited on multiple machines at
the same time. How do you keep the dataset constantly updated with
changes made to the data? I'm playing with just calling the fill method,
but it seems pretty unstable at times. Especially when deleting records,
they don't seem to...
| |
by: Basel |
last post by:
Hi All
I'm using SetConsoleCtrlHandler to handle Ctrl-C event. But I have a
problem using it in multi-threaded applications (it doesn't invoke
handler function).
What is the correct way to handle Ctrl-C event in a multi-threaded
application??
|
by: rapin |
last post by:
How do you make javascript’s string functions (like toUpperCase() or substr()) run under SpiderMonkey to handle multi-byte characters.
For example:
var strTest = "ørnen på";
var strWork = strTest.toUpperCase();
print( strWork );
The result is øRNEN På
|
by: Rui Maciel |
last post by:
I want to support Unicode on a pet project of mine (small markup language
parser). I've read a bit about Unicode (didn't delved beyond the basics)
and I searched for some info on how to support Unicode on C programs.
Unfortunately I wasn't able to find articles that could be considered more
than loose ends, small blog entries and side remarks, never delving too
much into specifics.
From what I gathered, the two main methods (based on...
|
by: dmoore |
last post by:
Hi folks,
I've seen the following issue come up in multiple posts to this
mailing list:
I have a python program that spawns a child process with popen or
popen2 or popen3 or popen2.popen2 etc.
the child process is interactive: it asks for input then spits out
some output, asks for more input then spits out some output. for
example, consider the trivial child program:
|
by: MartinRinehart |
last post by:
Thinking about unclosed multi-line quotes.
When you open a multi-line quote (type '"""') what does your editor
do? Does it color the remainder of your text as a quote, or does it
color the line with the open quote as a quote and leave the rest of
your code alone?
What do you want it to do?
This is a tokenizer question in disguise, of course. The simple way to
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |