Assembly Resources Expression Builder

Posted by João Angelo on Exceptional Code See other posts from Exceptional Code or by João Angelo
Published on Sat, 23 Jul 2011 10:15:50 +0000 Indexed on 2011/11/11 18:22 UTC
Read the original article Hit count: 431

Filed under:
|
|

In ASP.NET you can tackle the internationalization requirement by taking advantage of native support to local and global resources used with the ResourceExpressionBuilder.

But with this approach you cannot access public resources defined in external assemblies referenced by your Web application.

However, since you can extend the .NET resource provider mechanism and create new expression builders you can workaround this limitation and use external resources in your ASPX pages much like you use local or global resources.

Finally, if you are thinking, okay this is all very nice but where’s the code I can use? Well, it was too much to publish directly here so download it from Helpers.Web@Codeplex, where you also find a sample on how to configure and use it.


© Exceptional Code or respective owner

Related posts about .NET

Related posts about ASP .NET