ResourceManager

R

Ramon Rocha

Dear friends,

How do I do to create a ResourceManager in global.asax?
I was tried:
Application("RM") = New ResourceManager("strings",
Server.MapPath("resources"), Nothing)

But return, on Server.MapPath: type string cannot be converted to
System.Reflection.Assembly

Because?

Another question:
I've created strings.pt-br.resx and strings.en-us.resx in
App_GlobalResources
<asp:label Id="label1" runat="server" text="<%$ Resources:strings, URLImages
%>">
return: The resource object with key 'URLImages' was not found
* but URLImages existis...
If I create strings.resx (strings defaults for pt-br), it's works! But use
only pt-br (I've tried change IE default language for en-us), i.e. defaults
on strings.resx. Because my application don't detect user language?

I'm sorry by my poor english

Thank You

RAMON ROCHA
from Brazil
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,609
Members
45,253
Latest member
BlytheFant

Latest Threads

Top