title: Set image src to a url in javascript
body: <p>I have an image in my page. I want to change it's src in a script tag.
  this is code :</p>
  
  <pre><code>&lt;asp:Image ID="ImgSecode" runat="server" ImageUrl="~/CImage.aspx" CssClass="lblSec"/&gt;
  </code></pre>
  
  <p>in page CImage , an image will create.
  it works.
  but when i want to change the picture in script tag,it doesn;t work.
  here is javascript code :</p>
  
  <pre><code>document.getElementById('&lt;%= ImgSecode.ClientID %&gt;').src = "CImage.aspx";
  </code></pre>
  
  <p>In addition when i set the source to an image which is in solution it works.</p>
  
  <p>Can you help me what should i do?</p>