Hopefully someone can help me!
To facilitate implementation of a 'globalised' site (language-enabled), we're holding string resources in resx resource files which are compiled to a satellite dll.
On page so far, we've had to do a very manual mapping within code from a ResourceManager object (which pulls out the correct strings relevant to the current culture) to an assortment of Literal, Label etc controls on each page. This is proving to be a horribly slow working practice as you can probably imagine.
I can't see another way of doing this, unless I can somehow write a 'content-placeholder' control to automatically map to content within a resource assembly. I think I might be able to achieve this apart from one problem I've come up against. To create a ResourceManager object, I need a reference to the currently executing assembly (currently obtained using Assembly.GetExecutingAssembly()). However, if I need to create the manager within a control, the reference returned to the currently executing assembly is that of the control dll. Is there any way of, from within a control, obtaining a reference to the currently executing site-dll?
Or if anyone can suggest an alternate way of working, I'd be most grateful!!
TIA
dan@2sms.com
To facilitate implementation of a 'globalised' site (language-enabled), we're holding string resources in resx resource files which are compiled to a satellite dll.
On page so far, we've had to do a very manual mapping within code from a ResourceManager object (which pulls out the correct strings relevant to the current culture) to an assortment of Literal, Label etc controls on each page. This is proving to be a horribly slow working practice as you can probably imagine.
I can't see another way of doing this, unless I can somehow write a 'content-placeholder' control to automatically map to content within a resource assembly. I think I might be able to achieve this apart from one problem I've come up against. To create a ResourceManager object, I need a reference to the currently executing assembly (currently obtained using Assembly.GetExecutingAssembly()). However, if I need to create the manager within a control, the reference returned to the currently executing assembly is that of the control dll. Is there any way of, from within a control, obtaining a reference to the currently executing site-dll?
Or if anyone can suggest an alternate way of working, I'd be most grateful!!
TIA
dan@2sms.com