I would like to use ASP.NET ExpressionBuilder syntax to dynamically fetch a domain of static content from AppSetting.
I use the following syntax that does not work:
<img src="<%$Appsettings:STATIC_CONTENT_DOMAIN %>/img/logo.jpg" alt="logo" width="176" height="159" />
FYI, the desired HTML output:
<img src="http://static.myserver.com/img/logo.jpg" alt="logo" width="176" height="159" />
Please note: I cannot use the syntax <% =%> because my ASPX page must be CompilationMode = "never". (The reason I use ExpressionBuilder syntax is because it works on pages without compilation)
Any ideas on how I can do this?
source
share