A
amitmnagarwal
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
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