ASP.net Expression Builders
Some linkage first:
For example:
- Use ExpressionBuilder To Avoid "Server tags cannot contain <% ... %> constructs"
- The CodeExpressionBuilder
- skmExpressionBuilders - A Suite of Custom Expression Builder Classes
- Using Expression Builders in ASP.NET
For example:
In a product I'm working on I'm planning on using it to implement database backed localisation for UI strings. The current solution has all pages inherit from a base page that provides an abstract "SetLocalisedStrings" method which gets called and is responsible for setting all the relevant ".Text" properties of various controls. Clunky, and it separates the localisation keys from the actual controls making it hard to match-up what goes where.
<asp:Literal runat="server" Text="<%$ MyExpressionBuilder: my.key.that.gets.handled %>
