title: Display image in label
body: <p>I have a class which accesses the database to get an url of an image which is stored in the db. Then it displays the image to the user.</p>
  
  <p>Here is my code behind class:</p>
  
  <pre><code>  protected void Page_Load(object sender, EventArgs e)
      {
          string image;
          Advertisement Ad= BusinessLogic.getAd(8);
  
          image = Ad.getImage();
      lblImage.Text = "&lt;img alt='' src='image' /&gt;"; 
      }
  </code></pre>
  
  <p>My problem is the image doesn't get displayed in the web form, but if i pass the url directly to the src it works perfectly. I can assure that the stored url link is correct and the url is return using Ad.getImage() method.</p>
  
  <p>Directly passing example:</p>
  
  <pre><code>  protected void Page_Load(object sender, EventArgs e)
      {
          string image;
          Advertisement Ad= BusinessLogic.getAd(8);
  
          image = Ad.getImage();
      lblImage.Text = "&lt;img alt='' src='http://o.aolcdn.com/hss/storage/adam/bfeae281284ba5cfd120f41e489eac23/honda-vezel.jpgimage' /&gt;";  //directly passed without accessing db
  </code></pre>
  
  <p>}</p>
  
  <p>What can be the problem here?</p>
  
  <p>Thank you for your time</p>