473,480 Members | 2,014 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Doubt on Multilingual application

I am using the following code to access the resourc file.

Dim sAssembly As [Assembly]
sAssembly = [Assembly].GetExecutingAssembly()

Dim rm As New ResourceManager("MultiLingual.Info",
sAssembly)

''Case sensitive
Response.Write(rm.GetString("Test"))
Response.Write("<br><br>" & rm.GetString("Test1"))

This code would reside in a common place where the whole application
would require the info from the resource file.

I wanted to know that if i create the instance of the resourcemanager
at application level in the application start event and let the code
reference the application object.

This would avoid callling the above code repeatedly

Please advice

Oct 12 '06 #1
2 1534
Probably not a good idea because more than one thread might try to use
you ResourceManager object at the same time, so you could run into
concurrency problems.

am***********@gmail.com wrote:
I am using the following code to access the resourc file.

Dim sAssembly As [Assembly]
sAssembly = [Assembly].GetExecutingAssembly()

Dim rm As New ResourceManager("MultiLingual.Info",
sAssembly)

''Case sensitive
Response.Write(rm.GetString("Test"))
Response.Write("<br><br>" & rm.GetString("Test1"))

This code would reside in a common place where the whole application
would require the info from the resource file.

I wanted to know that if i create the instance of the resourcemanager
at application level in the application start event and let the code
reference the application object.

This would avoid callling the above code repeatedly

Please advice
Oct 12 '06 #2
When localizing ASP.NET web applications, you should use

<%$ Resources: .... %expressions in markup,
Resources (generated namespace),
HttpContext.GetGlobalResourceObject() method (available also in Page)
and HttpContext.GetLocalResourceObject() method (available also in Page).

There is usually no need to use ResourceManager.

Robert Haken [MVP ASP/ASP.NET]
HAVIT, s.r.o., www.havit.cz
http://knowledge-base.havit.cz

<am***********@gmail.compíse v diskusním príspevku
news:11**********************@i3g2000cwc.googlegro ups.com...
>I am using the following code to access the resourc file.

Dim sAssembly As [Assembly]
sAssembly = [Assembly].GetExecutingAssembly()

Dim rm As New ResourceManager("MultiLingual.Info",
sAssembly)

''Case sensitive
Response.Write(rm.GetString("Test"))
Response.Write("<br><br>" & rm.GetString("Test1"))

This code would reside in a common place where the whole application
would require the info from the resource file.

I wanted to know that if i create the instance of the resourcemanager
at application level in the application start event and let the code
reference the application object.

This would avoid callling the above code repeatedly

Please advice

Oct 12 '06 #3

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

Similar topics

3
2853
by: Ed | last post by:
I want to create a multilingual website in ASP. Is the Dictionary object created with the application-level scope the way to go?
0
1451
by: Corobori | last post by:
I am developping a multilingual application. I would like to find an installer integrated with .NET allowing me to develop a multilingual interface as well as including the NET Framework in those...
0
1482
by: Charles | last post by:
Hi, I'm looking for best practices for building a multilingual database. It is for an multilingual application that will use a persistence layer. I would like to know what are the different...
7
4375
by: J?rg Keller | last post by:
Hi all I have to localize an Access 2002 application: The application using several form, tables etc. is currently only in English. Now the frontend has to be bilingual, so the user can choose...
3
1949
by: charliewest | last post by:
Building Multilingual Portal I have been assigned a new project to build a multilingual portal using ASP.NET and the expected Microsoft technologies including C#, ADO.NET and SQL Server 2000. ...
0
1631
by: balaki | last post by:
Hi All, I have a Multilingual VB6 application, which rightnow supports French language. When I debug the code, it works in French, by changing the regional settings - locale to French(France)....
7
3133
by: Luc The Perverse | last post by:
Hello! I am looking for a good way to make an application multilingual. Danish/English for now (but I don't want to preclude more than two languages eventually) Every dialog will have an option...
2
2261
by: raju | last post by:
Hai all, I am working on the multilingual application, in asp.net. In that we are displaying contents in some other language (user selected language). In that page, we are having some textbox...
1
2147
by: Abhijit D. Babar | last post by:
I have to create a multilingual application in Visual c++ .net 2008. I have a Windows form application and i want to run this on multilingual support. So how can i do this. Which change i have...
0
7055
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
7106
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...
1
6760
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
7022
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
4501
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...
0
3013
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...
0
3004
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1311
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 ...
0
206
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.