title: load image file with fileUpload to server and try to read it
body: <p>I have some problem with subject. My program asks user to load picture with fileUpload and then this file has to show both in listBox as filename and in Image as picture. Everything is done except showing picture in Image control. I've already read a lot of forums and tried to change url with ~ / \ but nothing help. B.t.w., I tried to change access security in properties for folder, but it doesn't still work. That is why, I ask you to help me. This is part of my code which load file and must show it:</p>
  
  <pre><code>        string folderPath = Server.MapPath(@"~\images\");
          FileUpload1.SaveAs(folderPath + filename);
          ListBox1.Items.Add(filename);
          folderPath = System.Text.RegularExpressions.Regex.Replace(folderPath, @"\\", @"/"); //tried to do with and without this line
          Image1.ImageUrl = folderPath + filename;
  </code></pre>
  
  <p>Where is my fault? If I enter in address-line localhost\images\pic.jpg it's shown well</p>