title: Displaying images at run time inside a panel in c# using asp.net
body: <p>I want to display images based on a search query inside a panel at run time in c#. Its a web application. The code i wrote for displaying images at run time is not working. Here's the code.</p>
  
  <pre><code>System.Web.UI.WebControls.ImageMap image = new System.Web.UI.WebControls.ImageMap();
  image.ImageUrl = reader["image"].ToString(); // Take the path from the database
  Panel1.Controls.Add(image); // Display the image
  </code></pre>
  
  <p>The code is working fine, but the image is not getting displayed inside the panel.</p>