Cannot Specify Resource file path for c#.net 1.1
To changing culture of pages with resource files, i am using resourcemanager. My syntax to create resource manager is :
Code:
RM =new ResourceManager("MyStrings",System.Reflection.Assembly.GetExecutingAssembly());
I am unable to specify the Resource file directory path for it. I am using asp.net 1.1. I want to specify the path manually because it is giving an error that is cannot find the path. Please help...:no:
Re: Cannot Specify Resource file path for c#.net 1.1
According to me assembly you should not specify the path as GetExecutingAssembly returns a reference to the assembly that you are calling the method yours is 'Assembly'. According to me what you should use is the ctor overload which will accept a TYPE as the second parameter, so specify the TYPE of the particular Resource Assembly that you need to use. :thumbup1:
Re: Cannot Specify Resource file path for c#.net 1.1
Hey thanks mate! That helped me.. I'm still not very well with asp.net. Hope i come across you again... The method of yours just disappeared my problem... :notworthy