title: How to write image in <img> tag in c#
body: <p>I am concatenating my HTML in string now the HTML coming from my DB
  also there some images stores in DB Both path and Bytes...
  now i want to show my image in html <code>&lt;img&gt;</code> tag then i write it on doc file</p>
  
  <p>Here is my code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>if (ds.Tables[4].Rows.Count &gt; 0)
  {
  
      DataTable Dt_4 = ds.Tables[4];
  
      foreach (DataRow item in Dt_4.Rows)
      {
          QuestionName += "&lt;br style='page-break-before: always'&gt; &lt;br style='page-break-before: always'&gt;";
          QuestionName += "&lt;b&gt;&lt;span style='text-decoration:underline'&gt;Question :  &lt;/span&gt;" + Dt_4.Rows[0]["Q_Num"].ToString() + "&lt;/b&gt;";
                                  
          QuestionName += "&lt;b&gt;&lt;span style='padding-left:20px;'&gt;Marks :  &lt;/span&gt;(" + item["Marks"].ToString() + ")&lt;/b&gt;";
          QuestionName += item["QuestionName"].ToString();
  
          string imagePath = item["ImagePath"].ToString();
                                 
          QuestionName += " &lt;div&gt;&lt;img src='" + imagePath + "' height='350' width='450'&gt; &lt;/div&gt; ";
                               
      }                      
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>the image shows correctly when i run it on sever but when i access server from my local machine it doesn't show
  any help ???</p>