Using resources in satellite assemblies with ASP.NET (semi-newbie)

G

Guest

I've read the ASP.NET QuickStart Tutorial "Working with Resource Files" about
how to use satellite assemblies for resources in ASP.NET, and I've gotten it
to work... but I don't really understand HOW it works.

My confusion regards how the tutorial uses one name (qq.dll in \bin) in Step
1 for the assembly containing the default resources, but then uses a
different name (eg: qq.resources.dll in \bin\es-MX) in Step 3 for the
assemblies containing the localized resources. Then in Step 2 it shows the
app loading the resource assembly:

Dim a As Assembly = Assembly.Load("qq")

But how does the above method successfully load the qq assembly (from \bin)
when I don't over-ride currentUIcultrue but loads qq.resources (from
\bin\es-MX, when currentUIculture = "es-MX")?

(Yes, I understand that the search is based on the currentUIculture, but how
does it work since the default and culture-specific assemblies don't have the
same name?)

In short, how does a load for assembly "qq" result ever result in assembly
"qq.resource" being loaded?

Thanks,

DT
 

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,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top