How use dynamic image URl for Image button
<p>I have a Image button on the aspx page that is server side button.</p>

<p>Now I want to get image url for this from my code class. but this is not working.</p>

<pre><code>&lt;asp:ImageButton ID="total" runat="server" ImageUrl='&lt;%=myappnamespace.Utility.GetImageURL("chckout_p.png")%&gt;'&gt;
</code></pre>

<p>Function <code>GetImageURl</code> is public in Utility calls and return the full image path. </p>

<p>If I used this for the following then its working fine</p>

<pre><code>&lt;img src='&lt;%=myappnamespace.Utility.GetImageURL("chckout_p.png")%&gt;'&gt;
</code></pre>

<p>So what is wrong with the server side controls.</p>
