title: filling <img src="?"> dynamically in asp.net c#
body: <p>Hi would like to add img source path dynamically as shown in the snippet below, but giving error. I know img_src_path adding syntax is correct. Unfortunately I don't know the solution, need help.</p>
  
  <p>Environment:</p>
  
  <p>ASP.net, c#</p>
  
  <pre><code>    &lt;% string a[0]="image/hello.jpg;"
    {
    String img_src_path= a[0].ToString();%&gt;
   &lt;li&gt;&lt;a href='"&lt;%#img_src_path%&gt;"'&gt;&lt;img src='"&lt;%#img_src_path%&gt;"' alt="" title=""/&gt;&lt;/a&gt;&lt;/li&gt;
   &lt;%}%&gt;
  </code></pre>
  
  <p>/Shashi</p>