473,408 Members | 1,788 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,408 software developers and data experts.

Resources Namespace

I've been trying to add support for localized error messages for my
errorProviders.

All the source code gives examples like this:
errorProvider1->SetError(eventDescription, "You must enter a description.");

However, that doesn't really cut it for localization.

I've eventually figured out that I want to add another resource file to my
project, named Errors.resx

There seems to be an implication that somehow this gets added to the
Resources namespace, so that I can just use the names directly, like this
quote
<quote>
Each .resx file in /Application_GlobalResources is translated to a
static class within the "Resources" namespace. So for example,
"Errors.resx" can be accessed using Resources.Errors.SomeErrorCode.
These classes exist in the web-application code space, so how can an
external class reference them without adding a reference?
</quote> from here:
http://www.velocityreviews.com/forum...libraries.html

I can't for the life of me figure out how to get this to work though.

Is there some magic property that must be set somewhere to get this to work?
Does the errors.resx have to live in a particular location?

Please help!

Tony

Jun 28 '06 #1
0 948

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

Similar topics

2
by: KoolistOne | last post by:
I have a template that I would like to include a namespace in but I won't be using that referenced namespace til a few months from now. In the mean time, will that referenced, but not used/called...
1
by: DelboyJay | last post by:
I have found a strange resource problem, but luckily I have also found the solution which was not obvious from the runtime exception. I really think that the compiler should pick up this problem...
5
by: Marcus Ahlberg | last post by:
I've been coding a C# project in "pure code" and I would now want to import it into VS.net. I have created a project and imported all sourcefiles and it's compiling without problems, except for the...
1
by: KMILO | last post by:
Hello, Thanks ins advance for reading my message Im trying to use many .resx files for different webforms when I try to the project the following error appears: Could not find any resources...
1
by: D. Yates | last post by:
Hi, I am looking for an example of how to extract bitmap images from an embedded resource file (a file with *.res extension, which can be viewed inside of the ide and can hold bitmaps, icons,...
0
by: Greg | last post by:
The intermediate resources file has name: <Root Namespace>.<form .resx file name>.resources (e.g. App1.Form1.resources) By the time this standard form code executes: ...
6
by: CuriousGeorge | last post by:
I've upgraded a .Net 1.1 web app to 2.0 and am having a heck of a time getting resources to work again. From what I understand if I move my strings.resx file into the App_GlobalResources folder I...
0
by: Henry Jan | last post by:
Hi All, In VS2005, when I use compilation directive for namespace that contains a control Control1 class, e.g.: #if _Version_A_ namespace Component.Windows.ASuite #elif _Version_B_ ...
0
by: shamirza | last post by:
· When was .NET announced? Bill Gates delivered a keynote at Forum 2000, held June 22, 2000, outlining the .NET 'vision'. The July 2000 PDC had a number of sessions on .NET technology, and...
5
by: JB | last post by:
Hi All, I've got 2 VB.NET applications in which I'd like to use strings declared in a VB.NET DLL. Is there a way to do that? Ideally I'd like to access it the same way as I access local...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
marktang
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
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...
0
agi2029
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,...
0
isladogs
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...
0
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...

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.