Resources Namespace

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • A Wieser

    #1

    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(event Description, "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_Glo balResources is translated to a
    static class within the "Resources" namespace. So for example,
    "Errors.res x" can be accessed using Resources.Error s.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:


    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

Working...