title: asp.net C# variable as Image1.ImageUrl property
body: <p>I would like to Click "buttonImage1" and have that store "photos/Image1.jpg"
  into a var called Photo.  then have <code>ButtonImage2.ImageUrl = (Photo)</code>.</p>
  
  <p>I am using an <code>UpdatePanel</code> to refresh the area with the images so the only problem is actually setting the variable correctly and then using it correctly.</p>
  
  <p>Reworded: how can I store a path to an image in a variable then set it correctly as a image's URL path?</p>
  
  <pre><code>protected void Button2_Click(object sender, ImageClickEventArgs e)
  {
      Evt = ("~/events/ev2.jpg");
  }   
  
  protected void Image2_Click(object sender, ImageClickEventArgs e)
  {
      Image1.ImageUrl = (Evt);    
  }
  </code></pre>