title: ashx handler called only once from ascx page
body: <p>In .ascx page i have image button as follows:</p>
  
  <pre><code>"&lt;asp:Image ID="imgPhotos" runat="server" Width="102" Height="82"/&gt;"
  </code></pre>
  
  <p>In its code behind, I have:</p>
  
  <pre><code>this.imgPhotos.ImageUrl = "~/lib/services/GetSpaceImage.ashx";
  </code></pre>
  
  <p>In GetSpaceImage.ashx, i am dynamically generating images. But the problem is, for the first time it works good. But, second time and so on it never generate the new images. Debugger hits hanlder only for the first time(when the application loads). I have tried using:
   "context.Response.Cache.SetCacheability(HttpCacheability.NoCache);" </p>
  
  <p>at the beginning of the ProcessRequest. But this also did not help. Am i missing anything? Please advice</p>