title: display the images in publishing of website in server?
body: <p>I am using the following code for saving the images.</p>
  
  <pre><code> if (RadUploadPageImage.UploadedFiles.Count != 0)
   {
       foreach (UploadedFile file in RadUploadPageImage.UploadedFiles)
       {
           targetFolder = "/ADDS/";
           targetFileName = Path.Combine(targetFolder, file.GetNameWithoutExtension() + counter.ToString() + file.GetExtension());
           string folderpath = Server.MapPath(@targetFileName);
           while (File.Exists(folderpath))
           {
               counter++;
               targetFileName = Path.Combine(targetFolder, file.GetNameWithoutExtension() + counter.ToString() + file.GetExtension());
               break;
           }
           for (int i = 0; i &lt; RadUploadPageImage.AllowedFileExtensions.Length; i++)
           {
               if (file.GetExtension().ToString() == AllowedFileExtensions[i])
               {
                   file.SaveAs(this.Server.MapPath(targetFileName));
                   path = targetFileName;
                   break;
                }
                else
                {
                    ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "aa", "&lt;script&gt;alert('Image should be in .jpg, .jpeg, .png, .gif,.bmp,.tiff');break;&lt;/script&gt;", false);
                }
            }
  </code></pre>
  
  <p>images are not displaying while publishing. How to display the images while publish the site in server. Please tell me </p>
  
  <p>While running the code in my system i am able to displaying the uploaded images.
  In published path i am not able diplaying the uploaded images.</p>
  
  <p>Please tell me what is the wrong ?</p>