Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

user web control assembly problem

Status
Not open for further replies.

nooro

Programmer
Feb 7, 2003
22
GB
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top