title: How do I display an image in a web form in asp.net Visual Studio?
body: <p>I have created an image folder in my root project folder</p>
  
  <pre><code>&lt;asp:Image ID="Image1" runat="server" ImageUrl="~/images/" /&gt;
  </code></pre>
  
  <p>I am linking my images here:</p>
  
  <pre><code>        if (dropDownList.SelectedItem.Value == "Picture 1")
          {
              Image1.ImageUrl = "~/images/picture1.jpg"
          }
  </code></pre>
  
  <p>When I visit the web page I get a small img box with an x instead of my image.</p>