ASP.NET ExpressionBuilder Syntax – Output Appsetting in IMG tag

I want to use ASP.NET’s ExpressionBuilder syntax to dynamically retrieve the domain of static content from AppSetting.

I use the following syntax, which does not work:< /p>

logo

For reference only, the required HTML output is:

logo

Please note that I cannot use< %=%> syntax, because my ASPX page needs to be CompilationMode = “never”. (The reason I use ExpressionBuilder syntax is that it works in non-compiled pages)

Anything on how to do this idea?

This method works for me (not very readable:)

I want to use ASP.NET’s ExpressionBuilder syntax to dynamically retrieve the domain of static content from AppSetting.

< p>I use the following syntax, which does not work:

logo

For reference only, the required HTML output is:

logo< /pre> 

Please note that I cannot use the <%=%> syntax, because my ASPX page needs to be CompilationMode = "never". (The reason I use the ExpressionBuilder syntax is that it works in non-compiled pages)

Any ideas on how to do this?

This method works for me (not very readable:)

Leave a Comment

Your email address will not be published.