expressionbuilder

ASP.NET ExpressionBuilder syntax - output AppSetting within img tag

I would like to use ASP.NET's ExpressionBuilder syntax to dynamically retrieve domain of static content from an AppSetting. I am using the following syntax, which does not work: <img src="<%$Appsettings:STATIC_CONTENT_DOMAIN %>/img/logo.jpg" alt="logo" width="176" height="159" /> FYI, the desired HTML output is: <img src="http://sta...

What is the escape character for SSIS Expression Builder?

I need to escape quotation marks in SQL Server Integration Services' Expression Builder. I cannot escape it with double or triple quotes. ...

ExpressionBuilder return any type of object

The code below works fine for primitive expressions (no surprise there) public class SiteContextExpressionBuilder : ExpressionBuilder { public override CodeExpression GetCodeExpression(BoundPropertyEntry entry, object parsedData, ExpressionBuilderContext context) { PropertyInfo property = typeof(SiteContext).GetProperty(entry.E...

Custom resource provider - how to customize expressions for my need?

I have a custom IResourceProvider implemented for SQL. I store localized strings like this: LANGUAGE_LABEL (id, url, type, name, culture_code, value) I've created a helper which so I can go like: Html.Resource("Common, Hi") //Global resources ('Common' stored in `type`) Html.Resource("Hi") //Local resources ('path_of_v...

Create custom expression for localized business content?

In short: I have an SQL implementation of the IResourceProvider. So: <asp:Literal id="id" text="<% $ Resources : Common, SomeResource %>" runat="server" /> works and I've created a helper so I can pass a string expression and get the same result: <%=Html.Resource("Common, SomeResource") %> I want to localize business content. Whic...

expression builder for XML

In my program I get passed some XML. If values in this XML fulfil a user defined criteria I store the xml otherwise it gets discarded. The problem I have is that I need to be able to allow the user to define the criteria (also combining multiple element with “OR” and “AND”) and then applying this when I get the XML. This is a C# applicat...