Click here to Skip to main content
15,888,454 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I've earlier used Spring.NET, but as the framework seems to be outdated, i'm trying to move onwards using AutoFac or StructureMap.

Besides using Spring.NET for DI, i've used other components such as SessionCultureResolver to store CultureInfo information in Session, and i've used my own implementation of an AbstractLocalizer.

My question is regarding the functionality the Spring.Net AbstractLocalizer offers. In Spring.Net, i can use .resx files, which i mark with Access Modifier "No code generation", and i can add resource strings to the resx named f.ex. '$this.literalHeader.Text'. Spring.Net will then inject the Value of that entry to the 'Text' Property of the control 'literalHeader' to the corresponding aspx or ascx. Spring.Net calls this 'Push localization'.
Reference docs: Chapter 20. Spring.NET Web Framework, look at 20.6.1

Has anyone seen this or similar functionality isolated in an open-source framework? I want to remove mye references to Spring.Net, but i don't want to do the tedious work of modifying all my aspx pages with a meta-resourcekey.

Any suggestions or input to solving this will be highly appreciacted.

I know the approach Spring.Net use is not the best for performance, as I suspect that a great amount of reflection is needed to locate controls and properties to inject values, but this is a performance degradation I'm already experiencing. It is an acceptable cost compared to the work needed to be done modifying all resx'es and pages,controls and so on.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900