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:
<asp:ImageButton runat="server" OnClick="Agree" ImageUrl="<%=ResourceManager.GetImageCDN("iagree.png")%>" />
and I get the title as error.
Only if I'm using <%# 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?