Server tags cannot contain <% ... %> constructs
<p>I am trying to use CDN for my images on the website.
Problem is, sometimes I have server controls such as ImageButton, and I would like to use a class in order to fully extract the path of the CDN. for that purpose I tried doing:</p>

<pre><code>&lt;asp:ImageButton runat="server" OnClick="Agree" ImageUrl="&lt;%=ResourceManager.GetImageCDN("iagree.png")%&gt;" /&gt;
</code></pre>

<p>and I get the title as error.</p>

<p>Only if I'm using &lt;%# it will work (and only if I an databinding).
How can I do this easily? how can I place CDN code on my markup code?</p>

<p>Thanks!</p>
